Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b33aa1a

Browse files
committed
Jack Jansen: The new version of the GUSI i/o library on the Macintosh
has a few slightly different calls from the old one.
1 parent 095249f commit b33aa1a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Python/dynload_mac.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ PERFORMANCE OF THIS SOFTWARE.
4040
#define CFragConnectionID ConnectionID
4141
#define kLoadCFrag 0x01
4242
#endif
43-
#ifdef USE_GUSI
43+
#ifdef USE_GUSI1
4444
#include "TFileSpec.h" /* for Path2FSSpec() */
4545
#endif
4646
#include <Files.h>
@@ -78,7 +78,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
7878
Ptr mainAddr;
7979
Str255 errMessage;
8080
OSErr err;
81-
#ifndef USE_GUSI
81+
#ifndef USE_GUSI1
8282
Boolean isfolder, didsomething;
8383
#endif
8484
char buf[512];
@@ -87,7 +87,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
8787
CFragSymbolClass class;
8888

8989
/* First resolve any aliases to find the real file */
90-
#ifdef USE_GUSI
90+
#ifdef USE_GUSI1
9191
err = Path2FSSpec(pathname, &libspec);
9292
#else
9393
(void)FSMakeFSSpec(0, 0, Pstring(pathname), &libspec);

Python/import.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,15 +1087,15 @@ check_case(char *buf, int len, int namelen, char *name)
10871087

10881088
#ifdef macintosh
10891089
#include <TextUtils.h>
1090-
#ifdef USE_GUSI
1090+
#ifdef USE_GUSI1
10911091
#include "TFileSpec.h" /* for Path2FSSpec() */
10921092
#endif
10931093
static int
10941094
check_case(char *buf, int len, int namelen, char *name)
10951095
{
10961096
FSSpec fss;
10971097
OSErr err;
1098-
#ifndef USE_GUSI
1098+
#ifndef USE_GUSI1
10991099
err = FSMakeFSSpec(0, 0, Pstring(buf), &fss);
11001100
#else
11011101
/* GUSI's Path2FSSpec() resolves all possible aliases nicely on

0 commit comments

Comments
 (0)