summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/qdoffs
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-11-19 16:13:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-11-19 16:13:35 (GMT)
commite48cef7aba0993ca6d01579f62900f0596960885 (patch)
tree008187dc4bba4fdd74ebca680bdef67e589527e9 /Mac/Modules/qdoffs
parent10d176f77e04ad95c3e501f8b65a0b9ad931a098 (diff)
downloadcpython-e48cef7aba0993ca6d01579f62900f0596960885.zip
cpython-e48cef7aba0993ca6d01579f62900f0596960885.tar.gz
cpython-e48cef7aba0993ca6d01579f62900f0596960885.tar.bz2
Getting rid of WITHOUT_FRAMEWORKS and ACCESSOR_CALLS_ARE_FUNCTIONS:
MacOS9isms.
Diffstat (limited to 'Mac/Modules/qdoffs')
-rw-r--r--Mac/Modules/qdoffs/_Qdoffsmodule.c10
-rw-r--r--Mac/Modules/qdoffs/qdoffssupport.py4
2 files changed, 3 insertions, 11 deletions
diff --git a/Mac/Modules/qdoffs/_Qdoffsmodule.c b/Mac/Modules/qdoffs/_Qdoffsmodule.c
index 8d9f7ef..5bc0f96 100644
--- a/Mac/Modules/qdoffs/_Qdoffsmodule.c
+++ b/Mac/Modules/qdoffs/_Qdoffsmodule.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 <QDOffscreen.h>
-#else
#include <Carbon/Carbon.h>
-#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_GWorldObj_New(GWorldPtr);
diff --git a/Mac/Modules/qdoffs/qdoffssupport.py b/Mac/Modules/qdoffs/qdoffssupport.py
index 0c4dd2a..1bd8f5a 100644
--- a/Mac/Modules/qdoffs/qdoffssupport.py
+++ b/Mac/Modules/qdoffs/qdoffssupport.py
@@ -34,11 +34,7 @@ GrafPtr = OpaqueByValueType("GrafPtr", "GrafObj")
QDErr = OSErrType("QDErr", 'h')
includestuff = includestuff + """
-#ifdef WITHOUT_FRAMEWORKS
-#include <QDOffscreen.h>
-#else
#include <Carbon/Carbon.h>
-#endif
#ifdef USE_TOOLBOX_OBJECT_GLUE
extern PyObject *_GWorldObj_New(GWorldPtr);