diff options
Diffstat (limited to 'Mac/Modules/ae')
-rw-r--r-- | Mac/Modules/ae/_AEmodule.c | 8 | ||||
-rw-r--r-- | Mac/Modules/ae/aesupport.py | 8 |
2 files changed, 0 insertions, 16 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c index ab54ca0..14f0305 100644 --- a/Mac/Modules/ae/_AEmodule.c +++ b/Mac/Modules/ae/_AEmodule.c @@ -38,11 +38,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *); #define AEDesc_Convert _AEDesc_Convert #endif -#if UNIVERSAL_INTERFACES_VERSION >= 0x0340 typedef long refcontype; -#else -typedef unsigned long refcontype; -#endif static pascal OSErr GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype refcon); /* Forward */ @@ -1426,11 +1422,7 @@ void init_AE(void) upp_AEIdleProc = NewAEIdleUPP(AEIdleProc); -#if UNIVERSAL_INTERFACES_VERSION >= 0x03400 - upp_GenericEventHandler = NewAEEventHandlerUPP(&GenericEventHandler); -#else upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler); -#endif PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New); PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert); diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index 346340b..16b9c5d 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -100,11 +100,7 @@ extern int _AEDesc_Convert(PyObject *, AEDesc *); #define AEDesc_Convert _AEDesc_Convert #endif -#if UNIVERSAL_INTERFACES_VERSION >= 0x0340 typedef long refcontype; -#else -typedef unsigned long refcontype; -#endif static pascal OSErr GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype refcon); /* Forward */ @@ -163,11 +159,7 @@ GenericEventHandler(const AppleEvent *request, AppleEvent *reply, refcontype ref initstuff = initstuff + """ upp_AEIdleProc = NewAEIdleUPP(AEIdleProc); -#if UNIVERSAL_INTERFACES_VERSION >= 0x03400 - upp_GenericEventHandler = NewAEEventHandlerUPP(&GenericEventHandler); -#else upp_GenericEventHandler = NewAEEventHandlerUPP(GenericEventHandler); -#endif PyMac_INIT_TOOLBOX_OBJECT_NEW(AEDesc *, AEDesc_New); PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert); """ |