unsupported features).
#define HAVE_FOPENRF
#endif
-#ifdef __CFM68K__
+#ifdef SYMANTEC__CFM68K__
#define atof Py_AtoF
#define strtod Py_StrToD
#endif
#ifdef __MWERKS__
#include "errno_unix.h"
+#include <Strings.h>
+#define c2pstr C2PStr
+#define p2cstr P2CStr
#endif
#include <errno.h>
#include <string.h>
#define HAVE_UNIVERSAL_HEADERS
#endif
-#ifdef __CFM68K__
+#ifdef SYMANTEC__CFM68K__
#pragma lib_export on
#endif
#ifdef __MWERKS__
#ifdef __powerc
strcat(version, " [MW PPC compiler]");
+#else
+#ifdef __CFM68K__
+ strcat(version, " [MW CFM68K compiler]");
#else
strcat(version, " [MW 68K compiler]");
#endif
#endif
+#endif
#ifdef THINK_C
#ifdef __SC__
strcat(version, " [Symantec Think C compiler]");
} inittab[] = {
{"array", initarray},
-#ifndef __CFM68K__
+#ifndef SYMANTEC__CFM68K__
/* The math library seems mostly broken... */
{"math", initmath},
#endif
/* Macintosh Applet Python main program */
-#ifdef __CFM68K__
+#ifdef SYMANTEC__CFM68K__
#pragma lib_export on
#endif
extern void PyMac_InitApplication();
main() {
+#if defined(__MWERKS__) && defined(__CFM68K__)
+ printf("Hello, world!\n");
+#endif
PyMac_InitApplication();
}
#define HAVE_UNIVERSAL_HEADERS
#endif
-#ifdef __CFM68K__
+#ifdef SYMANTEC__CFM68K__
#pragma lib_export on
#endif
char tmpbuf[256];
int plen;
+#if defined(__MWERKS__) && defined(__CFM68K__)
+ return -1; /* get_folder_parent doesn't work */
+#endif
fss_current = *fss;
plen = fss_current.name[0];
memcpy(buf, &fss_current.name[1], plen);
scan_event_queue(flush)
int flush;
{
+#if defined(__MWERKS__) && defined(__CFM68K__)
+ return; /* No GetEvQHdr yet */
+#else
register EvQElPtr q;
q = (EvQElPtr) GetEvQHdr()->qHead;
break;
}
}
+#endif
}
int
--- /dev/null
+#define HAVE_CONFIG_H
+#define USE_MAC_DYNAMIC_LOADING