mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
change ifdefs and fix "%#s" format
This commit is contained in:
parent
edea408f88
commit
3097c3a87e
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ typedef void (*dl_funcptr)();
|
||||||
|
|
||||||
#ifdef USE_MAC_SHARED_LIBRARY
|
#ifdef USE_MAC_SHARED_LIBRARY
|
||||||
#include <CodeFragments.h>
|
#include <CodeFragments.h>
|
||||||
#ifdef __SC__ /* Really just an older version of Universal Headers */
|
#ifdef __CFM68K__ /* Really just an older version of Universal Headers */
|
||||||
#define CFragConnectionID ConnectionID
|
#define CFragConnectionID ConnectionID
|
||||||
#define kLoadCFrag 0x01
|
#define kLoadCFrag 0x01
|
||||||
#endif
|
#endif
|
||||||
|
@ -228,7 +228,7 @@ load_dynamic_module(name, pathname)
|
||||||
if ( err ) {
|
if ( err ) {
|
||||||
char buf[512];
|
char buf[512];
|
||||||
|
|
||||||
sprintf(buf, "%#s: %s", errMessage, PyMac_StrError(err));
|
sprintf(buf, "%.*s: %s", errMessage[0], errMessage+1, PyMac_StrError(err));
|
||||||
err_setstr(ImportError, buf);
|
err_setstr(ImportError, buf);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue