summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ae
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-14 09:48:02 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-14 09:48:02 (GMT)
commit3075b326c4551b606535a31eed8797ee17773176 (patch)
treee9dca96e9fec61d5435ef32ac9d11a847070e407 /Mac/Modules/ae
parent872eeebf6d38a7c779e47c7d0ac3532aef709b58 (diff)
downloadcpython-3075b326c4551b606535a31eed8797ee17773176.zip
cpython-3075b326c4551b606535a31eed8797ee17773176.tar.gz
cpython-3075b326c4551b606535a31eed8797ee17773176.tar.bz2
different #ifdefs
Diffstat (limited to 'Mac/Modules/ae')
-rw-r--r--Mac/Modules/ae/AEmodule.c7
-rw-r--r--Mac/Modules/ae/aesupport.py7
2 files changed, 6 insertions, 8 deletions
diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c
index f8c3c91..58b4d13 100644
--- a/Mac/Modules/ae/AEmodule.c
+++ b/Mac/Modules/ae/AEmodule.c
@@ -34,15 +34,14 @@ extern PyObject *WinObj_WhichWindow(WindowPtr);
#include <AppleEvents.h>
-#ifdef THINK_C
+#ifndef HAVE_UNIVERSAL_HEADERS
#define AEIdleProcPtr IdleProcPtr
#define AEFilterProcPtr EventFilterProcPtr
#define AEEventHandlerProcPtr EventHandlerProcPtr
#endif
-#ifndef __MWERKS__
-/* Actually, this is "if not universal headers".
-** I'm trying to setup the code here so that is easily automated,
+#ifndef HAVE_UNIVERSAL_HEADERS
+/* I'm trying to setup the code here so that is easily automated,
** as follows:
** - Use the UPP in the source
** - for pre-universal headers, #define each UPP as the corresponding ProcPtr
diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py
index eb18956..3e63656 100644
--- a/Mac/Modules/ae/aesupport.py
+++ b/Mac/Modules/ae/aesupport.py
@@ -78,15 +78,14 @@ AEMethod = OSErrMethodGenerator
includestuff = includestuff + """
#include <AppleEvents.h>
-#ifdef THINK_C
+#ifndef HAVE_UNIVERSAL_HEADERS
#define AEIdleProcPtr IdleProcPtr
#define AEFilterProcPtr EventFilterProcPtr
#define AEEventHandlerProcPtr EventHandlerProcPtr
#endif
-#ifndef __MWERKS__
-/* Actually, this is "if not universal headers".
-** I'm trying to setup the code here so that is easily automated,
+#ifndef HAVE_UNIVERSAL_HEADERS
+/* I'm trying to setup the code here so that is easily automated,
** as follows:
** - Use the UPP in the source
** - for pre-universal headers, #define each UPP as the corresponding ProcPtr