diff options
Diffstat (limited to 'Mac/Modules/dlg')
-rw-r--r-- | Mac/Modules/dlg/Dlgmodule.c | 4 | ||||
-rw-r--r-- | Mac/Modules/dlg/dlgscan.py | 2 | ||||
-rw-r--r-- | Mac/Modules/dlg/dlgsupport.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/dlg/Dlgmodule.c b/Mac/Modules/dlg/Dlgmodule.c index eb9efab..827f7eb 100644 --- a/Mac/Modules/dlg/Dlgmodule.c +++ b/Mac/Modules/dlg/Dlgmodule.c @@ -705,7 +705,7 @@ static PyObject *DlgObj_GetDialogKeyboardFocusItem(_self, _args) return _res; } -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON static PyObject *DlgObj_SetGrafPortOfDialog(_self, _args) DialogObject *_self; @@ -787,7 +787,7 @@ static PyMethodDef DlgObj_methods[] = { {"GetDialogKeyboardFocusItem", (PyCFunction)DlgObj_GetDialogKeyboardFocusItem, 1, "() -> (SInt16 _rv)"}, -#ifndef TARGET_API_MAC_CARBON +#if !TARGET_API_MAC_CARBON {"SetGrafPortOfDialog", (PyCFunction)DlgObj_SetGrafPortOfDialog, 1, "() -> None"}, #endif diff --git a/Mac/Modules/dlg/dlgscan.py b/Mac/Modules/dlg/dlgscan.py index a9d6fc4..e49dbdd 100644 --- a/Mac/Modules/dlg/dlgscan.py +++ b/Mac/Modules/dlg/dlgscan.py @@ -57,7 +57,7 @@ class MyScanner(Scanner): def makegreylist(self): return [ - ('#ifndef TARGET_API_MAC_CARBON', [ + ('#if !TARGET_API_MAC_CARBON', [ 'SetGrafPortOfDialog', ])] diff --git a/Mac/Modules/dlg/dlgsupport.py b/Mac/Modules/dlg/dlgsupport.py index 11873cf..f5b86f5 100644 --- a/Mac/Modules/dlg/dlgsupport.py +++ b/Mac/Modules/dlg/dlgsupport.py @@ -165,7 +165,7 @@ object.add(f) f = Method(SInt16, 'GetDialogKeyboardFocusItem', (DialogRef, 'dialog', InMode)) object.add(f) f = Method(void, 'SetGrafPortOfDialog', (DialogRef, 'dialog', InMode), - condition='#ifndef TARGET_API_MAC_CARBON') + condition='#if !TARGET_API_MAC_CARBON') object.add(f) setuseritembody = """ |