mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -130,7 +130,7 @@ class MyGRObjectDefinition(GlobalObjectDefinition):
|
|||
Output("return 1;")
|
||||
OutRbrace()
|
||||
def outputGetattrHook(self):
|
||||
Output("#ifndef TARGET_API_MAC_CARBON")
|
||||
Output("#if !TARGET_API_MAC_CARBON")
|
||||
Output("""
|
||||
{ CGrafPtr itself_color = (CGrafPtr)self->ob_itself;
|
||||
|
||||
|
|
@ -259,7 +259,7 @@ class QDGlobalsAccessObjectDefinition(ObjectDefinition):
|
|||
pass
|
||||
|
||||
def outputGetattrHook(self):
|
||||
Output("#ifndef TARGET_API_MAC_CARBON")
|
||||
Output("#if !TARGET_API_MAC_CARBON")
|
||||
Output("""
|
||||
if ( strcmp(name, "arrow") == 0 )
|
||||
return PyString_FromStringAndSize((char *)&qd.arrow, sizeof(qd.arrow));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue