mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Include Carbon/Carbon.h in stead of universal headers, if appropriate.
Test for TARGET_API_MAC_OS8 in stead of !TARGET_API_MAC_CARBON where appropriate.
This commit is contained in:
parent
9f66b4af6a
commit
6143d533b6
3 changed files with 28 additions and 8 deletions
|
@ -28,11 +28,15 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "macglue.h"
|
||||
#include "pythonresources.h"
|
||||
|
||||
#ifdef WITHOUT_FRAMEWORKS
|
||||
#include <Windows.h>
|
||||
#include <Files.h>
|
||||
#include <LowMem.h>
|
||||
#include <Sound.h>
|
||||
#include <Events.h>
|
||||
#else
|
||||
#include <Carbon/Carbon.h>
|
||||
#endif
|
||||
|
||||
static PyObject *MacOS_Error; /* Exception MacOS.Error */
|
||||
|
||||
|
@ -354,13 +358,13 @@ MacOS_SetCreatorAndType(PyObject *self, PyObject *args)
|
|||
return Py_None;
|
||||
}
|
||||
|
||||
#if TARGET_API_MAC_OS8
|
||||
/*----------------------------------------------------------------------*/
|
||||
/* STDWIN High Level Event interface */
|
||||
|
||||
#include <EPPC.h>
|
||||
#include <Events.h>
|
||||
|
||||
#if TARGET_API_MAC_OS8
|
||||
static char accepthle_doc[] = "Get arguments of pending high-level event";
|
||||
|
||||
static PyObject *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue