From: Guido van Rossum Date: Tue, 14 Feb 1995 09:48:02 +0000 (+0000) Subject: different #ifdefs X-Git-Tag: v1.2b4~252 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3075b326c4551b606535a31eed8797ee17773176;p=thirdparty%2FPython%2Fcpython.git different #ifdefs --- diff --git a/Mac/Modules/ae/AEmodule.c b/Mac/Modules/ae/AEmodule.c index f8c3c91f59a4..58b4d136b949 100644 --- a/Mac/Modules/ae/AEmodule.c +++ b/Mac/Modules/ae/AEmodule.c @@ -34,15 +34,14 @@ extern PyObject *WinObj_WhichWindow(WindowPtr); #include -#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 eb1895601b1a..3e636566f197 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -78,15 +78,14 @@ AEMethod = OSErrMethodGenerator includestuff = includestuff + """ #include -#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