summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/cm
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/cm
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/cm')
-rw-r--r--Mac/Modules/cm/Cmmodule.c8
-rw-r--r--Mac/Modules/cm/cmscan.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Modules/cm/Cmmodule.c b/Mac/Modules/cm/Cmmodule.c
index b8a6216..79a1b7c 100644
--- a/Mac/Modules/cm/Cmmodule.c
+++ b/Mac/Modules/cm/Cmmodule.c
@@ -160,7 +160,7 @@ static PyObject *CmpInstObj_SetComponentInstanceStorage(_self, _args)
return _res;
}
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args)
ComponentInstanceObject *_self;
@@ -177,7 +177,7 @@ static PyObject *CmpInstObj_GetComponentInstanceA5(_self, _args)
}
#endif
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
static PyObject *CmpInstObj_SetComponentInstanceA5(_self, _args)
ComponentInstanceObject *_self;
@@ -256,12 +256,12 @@ static PyMethodDef CmpInstObj_methods[] = {
{"SetComponentInstanceStorage", (PyCFunction)CmpInstObj_SetComponentInstanceStorage, 1,
"(Handle theStorage) -> None"},
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
{"GetComponentInstanceA5", (PyCFunction)CmpInstObj_GetComponentInstanceA5, 1,
"() -> (long _rv)"},
#endif
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
{"SetComponentInstanceA5", (PyCFunction)CmpInstObj_SetComponentInstanceA5, 1,
"(long theA5) -> None"},
#endif
diff --git a/Mac/Modules/cm/cmscan.py b/Mac/Modules/cm/cmscan.py
index 6298f75..1c36eaa 100644
--- a/Mac/Modules/cm/cmscan.py
+++ b/Mac/Modules/cm/cmscan.py
@@ -60,7 +60,7 @@ class MyScanner(Scanner):
def makegreylist(self):
return [
- ('#ifndef TARGET_API_MAC_CARBON', [
+ ('#if !TARGET_API_MAC_CARBON', [
'SetComponentInstanceA5',
'GetComponentInstanceA5',
])]