summaryrefslogtreecommitdiff
path: root/Mac/Modules/qt
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:37:27 +0000
committerJack Jansen <jack.jansen@cwi.nl>2000-07-14 22:37:27 +0000
commita5e01cb6b31bad222f6dc00f08438f91698311b6 (patch)
treeb862a5ee2ae75759ab015cb8728ffcfb103dab1c /Mac/Modules/qt
parent3ee5920460d0c4412f8be8d2ec3544dc9c3284ef (diff)
downloadcpython-a5e01cb6b31bad222f6dc00f08438f91698311b6.tar.gz
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
Diffstat (limited to 'Mac/Modules/qt')
-rw-r--r--Mac/Modules/qt/Qtmodule.c8
-rw-r--r--Mac/Modules/qt/qtscan.py2
2 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Modules/qt/Qtmodule.c b/Mac/Modules/qt/Qtmodule.c
index 4899715988..70842165e5 100644
--- a/Mac/Modules/qt/Qtmodule.c
+++ b/Mac/Modules/qt/Qtmodule.c
@@ -6182,7 +6182,7 @@ PyTypeObject Movie_Type = {
/* --------------------- End object type Movie ---------------------- */
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
static PyObject *Qt_CheckQuickTimeRegistration(_self, _args)
PyObject *_self;
@@ -7575,7 +7575,7 @@ static PyObject *Qt_SpriteMediaGetActionVariable(_self, _args)
return _res;
}
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
static PyObject *Qt_SpriteMediaGetIndImageProperty(_self, _args)
PyObject *_self;
@@ -7772,7 +7772,7 @@ static PyObject *Qt_MoviesTask(_self, _args)
static PyMethodDef Qt_methods[] = {
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
{"CheckQuickTimeRegistration", (PyCFunction)Qt_CheckQuickTimeRegistration, 1,
"(void * registrationKey, long flags) -> None"},
#endif
@@ -7897,7 +7897,7 @@ static PyMethodDef Qt_methods[] = {
{"SpriteMediaGetActionVariable", (PyCFunction)Qt_SpriteMediaGetActionVariable, 1,
"(MediaHandler mh, QTAtomID variableID) -> (ComponentResult _rv, float value)"},
-#ifndef TARGET_API_MAC_CARBON
+#if !TARGET_API_MAC_CARBON
{"SpriteMediaGetIndImageProperty", (PyCFunction)Qt_SpriteMediaGetIndImageProperty, 1,
"(MediaHandler mh, short imageIndex, long imagePropertyType, void * imagePropertyValue) -> (ComponentResult _rv)"},
#endif
diff --git a/Mac/Modules/qt/qtscan.py b/Mac/Modules/qt/qtscan.py
index d57a32d60d..27d76be022 100644
--- a/Mac/Modules/qt/qtscan.py
+++ b/Mac/Modules/qt/qtscan.py
@@ -65,7 +65,7 @@ class MyScanner(Scanner):
def makegreylist(self):
return [
- ('#ifndef TARGET_API_MAC_CARBON', [
+ ('#if !TARGET_API_MAC_CARBON', [
'SpriteMediaGetIndImageProperty', # XXXX Why isn't this in carbon?
'CheckQuickTimeRegistration',
])]