diff options
Diffstat (limited to 'Mac/Modules/evt')
-rw-r--r-- | Mac/Modules/evt/_Evtmodule.c | 10 | ||||
-rw-r--r-- | Mac/Modules/evt/evtsupport.py | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/Mac/Modules/evt/_Evtmodule.c b/Mac/Modules/evt/_Evtmodule.c index 48c878d..9f62a2f 100644 --- a/Mac/Modules/evt/_Evtmodule.c +++ b/Mac/Modules/evt/_Evtmodule.c @@ -14,17 +14,13 @@ /* Macro to test whether a weak-loaded CFM function exists */ #define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\ - PyErr_SetString(PyExc_NotImplementedError, \ - "Not available in this shared library/OS version"); \ - return NULL; \ + PyErr_SetString(PyExc_NotImplementedError, \ + "Not available in this shared library/OS version"); \ + return NULL; \ }} while(0) -#ifdef WITHOUT_FRAMEWORKS -#include <Events.h> -#else #include <Carbon/Carbon.h> -#endif static PyObject *Evt_Error; diff --git a/Mac/Modules/evt/evtsupport.py b/Mac/Modules/evt/evtsupport.py index 7dd7258..ccdc1c5 100644 --- a/Mac/Modules/evt/evtsupport.py +++ b/Mac/Modules/evt/evtsupport.py @@ -35,11 +35,7 @@ EventMask = Type("EventMask", "H") EventKind = Type("EventKind", "H") includestuff = includestuff + """ -#ifdef WITHOUT_FRAMEWORKS -#include <Events.h> -#else #include <Carbon/Carbon.h> -#endif """ |