diff options
Diffstat (limited to 'Mac/Modules/ah')
-rw-r--r-- | Mac/Modules/ah/_AHmodule.c | 10 | ||||
-rw-r--r-- | Mac/Modules/ah/ahsupport.py | 4 |
2 files changed, 3 insertions, 11 deletions
diff --git a/Mac/Modules/ah/_AHmodule.c b/Mac/Modules/ah/_AHmodule.c index cf69076..9408e53 100644 --- a/Mac/Modules/ah/_AHmodule.c +++ b/Mac/Modules/ah/_AHmodule.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 <AppleHelp.h> -#else #include <Carbon/Carbon.h> -#endif static PyObject *Ah_Error; diff --git a/Mac/Modules/ah/ahsupport.py b/Mac/Modules/ah/ahsupport.py index a1e6d00..c91c298 100644 --- a/Mac/Modules/ah/ahsupport.py +++ b/Mac/Modules/ah/ahsupport.py @@ -20,11 +20,7 @@ from macsupport import * AHTOCType = Type("AHTOCType", "h") includestuff = includestuff + """ -#ifdef WITHOUT_FRAMEWORKS -#include <AppleHelp.h> -#else #include <Carbon/Carbon.h> -#endif """ |