diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:37:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-14 22:37:27 (GMT) |
commit | 74a1e63a89cdaad288260600cf77e3a20811f49b (patch) | |
tree | fcac57d67ef4a81ecfb8ae462dc3d254e9cf46be /Mac/Modules/icn | |
parent | 2d391f2f397d66e2ac3cadc0b3c3b008a57094bb (diff) | |
download | cpython-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/icn')
-rw-r--r-- | Mac/Modules/icn/Icnmodule.c | 4 | ||||
-rw-r--r-- | Mac/Modules/icn/icnscan.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/icn/Icnmodule.c b/Mac/Modules/icn/Icnmodule.c index 6ed20dd..6cbb936 100644 --- a/Mac/Modules/icn/Icnmodule.c +++ b/Mac/Modules/icn/Icnmodule.c @@ -564,7 +564,7 @@ static PyObject *Icn_PlotCIconHandle(_self, _args) return _res; } -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *Icn_IconServicesTerminate(_self, _args) PyObject *_self; @@ -1300,7 +1300,7 @@ static PyMethodDef Icn_methods[] = { {"PlotCIconHandle", (PyCFunction)Icn_PlotCIconHandle, 1, "(Rect theRect, IconAlignmentType align, IconTransformType transform, CIconHandle theCIcon) -> None"}, -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"IconServicesTerminate", (PyCFunction)Icn_IconServicesTerminate, 1, "() -> None"}, #endif diff --git a/Mac/Modules/icn/icnscan.py b/Mac/Modules/icn/icnscan.py index c2af061..93d27d0 100644 --- a/Mac/Modules/icn/icnscan.py +++ b/Mac/Modules/icn/icnscan.py @@ -47,7 +47,7 @@ class MyScanner(Scanner): def makegreylist(self): return [ - ('#ifndef TARGET_API_MAC_CARBON', [ + ('#if !TARGET_API_MAC_CARBON', [ 'IconServicesTerminate', ])] |