mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
This commit is contained in:
parent
2d391f2f39
commit
74a1e63a89
44 changed files with 223 additions and 223 deletions
|
@ -40,34 +40,34 @@ methods.append(f)
|
|||
|
||||
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 @@ methods.append(f)
|
|||
# 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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue