Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
diff --git a/Mac/Modules/win/winedit.py b/Mac/Modules/win/winedit.py
index bf43a43..89955ea 100644
--- a/Mac/Modules/win/winedit.py
+++ b/Mac/Modules/win/winedit.py
@@ -40,34 +40,34 @@
f = Method(Boolean, 'GetWindowZoomFlag',
(WindowRef, 'theWindow', InMode),
- condition='#ifndef TARGET_API_MAC_CARBON'
+ condition='#if !TARGET_API_MAC_CARBON'
)
methods.append(f)
f = Method(void, 'GetWindowStructureRgn',
(WindowRef, 'theWindow', InMode),
(RgnHandle, 'r', InMode),
- condition='#ifndef TARGET_API_MAC_CARBON'
+ condition='#if !TARGET_API_MAC_CARBON'
)
methods.append(f)
f = Method(void, 'GetWindowContentRgn',
(WindowRef, 'theWindow', InMode),
(RgnHandle, 'r', InMode),
- condition='#ifndef TARGET_API_MAC_CARBON'
+ condition='#if !TARGET_API_MAC_CARBON'
)
methods.append(f)
f = Method(void, 'GetWindowUpdateRgn',
(WindowRef, 'theWindow', InMode),
(RgnHandle, 'r', InMode),
- condition='#ifndef TARGET_API_MAC_CARBON'
+ condition='#if !TARGET_API_MAC_CARBON'
)
methods.append(f)
f = Method(short, 'GetWindowTitleWidth',
(WindowRef, 'theWindow', InMode),
- condition='#ifndef TARGET_API_MAC_CARBON'
+ condition='#if !TARGET_API_MAC_CARBON'
)
methods.append(f)
@@ -105,7 +105,7 @@
# so we add the old/real names by hand.
f = Method(void, 'CloseWindow',
(WindowPtr, 'theWindow', InMode),
- condition='#ifndef TARGET_API_MAC_CARBON'
+ condition='#if !TARGET_API_MAC_CARBON'
)
methods.append(f)