diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-05-19 12:34:59 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-05-19 12:34:59 (GMT) |
commit | 6143d533b682dbfe38474ae8858741b3eecd8c91 (patch) | |
tree | d136af7f3ba8f2e57cbeb6910fb9edf4e3d263a5 /Mac/Modules/macosmodule.c | |
parent | 9f66b4af6a02cd185738f0cdb28336151c928056 (diff) | |
download | cpython-6143d533b682dbfe38474ae8858741b3eecd8c91.zip cpython-6143d533b682dbfe38474ae8858741b3eecd8c91.tar.gz cpython-6143d533b682dbfe38474ae8858741b3eecd8c91.tar.bz2 |
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.
Diffstat (limited to 'Mac/Modules/macosmodule.c')
-rw-r--r-- | Mac/Modules/macosmodule.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Mac/Modules/macosmodule.c b/Mac/Modules/macosmodule.c index dd6c837..b4c4034 100644 --- a/Mac/Modules/macosmodule.c +++ b/Mac/Modules/macosmodule.c @@ -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 * |