From: Guido van Rossum Date: Mon, 24 Apr 2000 15:08:18 +0000 (+0000) Subject: Jack Jansen: The new version of the GUSI i/o library on the Macintosh X-Git-Tag: v2.0b1~1955 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b33aa1a51e1a7a204c5ad41f812d02f249aa56eb;p=python Jack Jansen: The new version of the GUSI i/o library on the Macintosh has a few slightly different calls from the old one. --- diff --git a/Python/dynload_mac.c b/Python/dynload_mac.c index 884680311f..85ff0144c7 100644 --- a/Python/dynload_mac.c +++ b/Python/dynload_mac.c @@ -40,7 +40,7 @@ PERFORMANCE OF THIS SOFTWARE. #define CFragConnectionID ConnectionID #define kLoadCFrag 0x01 #endif -#ifdef USE_GUSI +#ifdef USE_GUSI1 #include "TFileSpec.h" /* for Path2FSSpec() */ #endif #include @@ -78,7 +78,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, Ptr mainAddr; Str255 errMessage; OSErr err; -#ifndef USE_GUSI +#ifndef USE_GUSI1 Boolean isfolder, didsomething; #endif char buf[512]; @@ -87,7 +87,7 @@ dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, CFragSymbolClass class; /* First resolve any aliases to find the real file */ -#ifdef USE_GUSI +#ifdef USE_GUSI1 err = Path2FSSpec(pathname, &libspec); #else (void)FSMakeFSSpec(0, 0, Pstring(pathname), &libspec); diff --git a/Python/import.c b/Python/import.c index 88908a96ae..53400542fc 100644 --- a/Python/import.c +++ b/Python/import.c @@ -1087,7 +1087,7 @@ check_case(char *buf, int len, int namelen, char *name) #ifdef macintosh #include -#ifdef USE_GUSI +#ifdef USE_GUSI1 #include "TFileSpec.h" /* for Path2FSSpec() */ #endif static int @@ -1095,7 +1095,7 @@ check_case(char *buf, int len, int namelen, char *name) { FSSpec fss; OSErr err; -#ifndef USE_GUSI +#ifndef USE_GUSI1 err = FSMakeFSSpec(0, 0, Pstring(buf), &fss); #else /* GUSI's Path2FSSpec() resolves all possible aliases nicely on