From eceb3e3f0a7d0f58ac75b46cc1c907eaf21dd472 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 27 Jun 1995 13:15:15 +0000 Subject: Porting to CW CFM68K --- Python/importdl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Python/importdl.c') diff --git a/Python/importdl.c b/Python/importdl.c index 189bc43f12..16b50aff0c 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -151,7 +151,7 @@ typedef void (*dl_funcptr)(); #ifdef USE_MAC_DYNAMIC_LOADING #include -#ifdef __CFM68K__ /* Really just an older version of Universal Headers */ +#ifdef SYMANTEC__CFM68K__ /* Really just an older version of Universal Headers */ #define CFragConnectionID ConnectionID #define kLoadCFrag 0x01 #endif @@ -268,7 +268,10 @@ load_dynamic_module(name, pathname, fp) /* First resolve any aliases to find the real file */ (void)FSMakeFSSpec(0, 0, Pstring(pathname), &libspec); +#if !(defined(__MWERKS__) && defined(__CFM68K__)) + /* Bug: not in library */ err = ResolveAliasFile(&libspec, 1, &isfolder, &didsomething); +#endif if ( err ) { sprintf(buf, "%s: %s", pathname, PyMac_StrError(err)); err_setstr(ImportError, buf); -- cgit v1.2.1