summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/qd
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:37:27 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:37:27 (GMT)
commit74a1e63a89cdaad288260600cf77e3a20811f49b (patch)
treefcac57d67ef4a81ecfb8ae462dc3d254e9cf46be /Mac/Modules/qd
parent2d391f2f397d66e2ac3cadc0b3c3b008a57094bb (diff)
downloadcpython-74a1e63a89cdaad288260600cf77e3a20811f49b.zip
cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.tar.gz
cpython-74a1e63a89cdaad288260600cf77e3a20811f49b.tar.bz2
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
Diffstat (limited to 'Mac/Modules/qd')
-rw-r--r--Mac/Modules/qd/Qdmodule.c4
-rw-r--r--Mac/Modules/qd/qdsupport.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/qd/Qdmodule.c b/Mac/Modules/qd/Qdmodule.c
index 9d844b8..c4a7ccd 100644
--- a/Mac/Modules/qd/Qdmodule.c
+++ b/Mac/Modules/qd/Qdmodule.c
@@ -105,7 +105,7 @@ static PyObject *GrafObj_getattr(self, name)
GrafPortObject *self;
char *name;
{
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
{ CGrafPtr itself_color = (CGrafPtr)self->ob_itself;
@@ -390,7 +390,7 @@ static PyObject *QDGA_getattr(self, name)
QDGlobalsAccessObject *self;
char *name;
{
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
if ( strcmp(name, "arrow") == 0 )
return PyString_FromStringAndSize((char *)&qd.arrow, sizeof(qd.arrow));
diff --git a/Mac/Modules/qd/qdsupport.py b/Mac/Modules/qd/qdsupport.py
index 1c0f6c3..d493574 100644
--- a/Mac/Modules/qd/qdsupport.py
+++ b/Mac/Modules/qd/qdsupport.py
@@ -130,7 +130,7 @@ class MyGRObjectDefinition(GlobalObjectDefinition):
Output("return 1;")
OutRbrace()
def outputGetattrHook(self):
- Output("#ifndef TARGET_API_MAC_CARBON")
+ Output("#if !TARGET_API_MAC_CARBON")
Output("""
{ CGrafPtr itself_color = (CGrafPtr)self->ob_itself;
@@ -259,7 +259,7 @@ class QDGlobalsAccessObjectDefinition(ObjectDefinition):
pass
def outputGetattrHook(self):
- Output("#ifndef TARGET_API_MAC_CARBON")
+ Output("#if !TARGET_API_MAC_CARBON")
Output("""
if ( strcmp(name, "arrow") == 0 )
return PyString_FromStringAndSize((char *)&qd.arrow, sizeof(qd.arrow));