mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +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
|
@ -359,7 +359,7 @@ MacOS_SetCreatorAndType(PyObject *self, PyObject *args)
|
|||
#include <EPPC.h>
|
||||
#include <Events.h>
|
||||
|
||||
#ifndef TARGET_API_MAC_CARBON
|
||||
#if !TARGET_API_MAC_CARBON
|
||||
static char accepthle_doc[] = "Get arguments of pending high-level event";
|
||||
|
||||
static PyObject *
|
||||
|
@ -677,7 +677,7 @@ MacOS_CompactMem(PyObject *self, PyObject *args)
|
|||
}
|
||||
|
||||
static PyMethodDef MacOS_Methods[] = {
|
||||
#ifndef TARGET_API_MAC_CARBON
|
||||
#if !TARGET_API_MAC_CARBON
|
||||
{"AcceptHighLevelEvent", MacOS_AcceptHighLevelEvent, 1, accepthle_doc},
|
||||
#endif
|
||||
{"GetCreatorAndType", MacOS_GetCreatorAndType, 1, getcrtp_doc},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue