diff --git a/Mac/Modules/fm/_Fmmodule.c b/Mac/Modules/fm/_Fmmodule.c --- a/Mac/Modules/fm/_Fmmodule.c +++ b/Mac/Modules/fm/_Fmmodule.c @@ -3,7 +3,7 @@ #include "Python.h" -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) #include "pymactoolbox.h" @@ -347,7 +347,7 @@ void init_Fm(void) { PyObject *m; -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) PyObject *d; #endif /* __LP64__ */ @@ -355,7 +355,7 @@ m = Py_InitModule("_Fm", Fm_methods); -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) d = PyModule_GetDict(m); Fm_Error = PyMac_GetOSErrException(); if (Fm_Error == NULL || diff --git a/Mac/Modules/qd/_Qdmodule.c b/Mac/Modules/qd/_Qdmodule.c --- a/Mac/Modules/qd/_Qdmodule.c +++ b/Mac/Modules/qd/_Qdmodule.c @@ -4,7 +4,7 @@ #include "Python.h" -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) #include "pymactoolbox.h" @@ -6548,7 +6548,7 @@ #endif /* __LP64__ */ static PyMethodDef Qd_methods[] = { -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) {"GetPort", (PyCFunction)Qd_GetPort, 1, PyDoc_STR("() -> (GrafPtr port)")}, {"GrafDevice", (PyCFunction)Qd_GrafDevice, 1, @@ -7088,7 +7088,7 @@ }; -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) /* Like BMObj_New, but the original bitmap data structure is copied (and ** released when the object is released) @@ -7112,7 +7112,7 @@ void init_Qd(void) { PyObject *m; -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) PyObject *d; @@ -7127,7 +7127,7 @@ #endif /* __LP64__ */ m = Py_InitModule("_Qd", Qd_methods); -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) d = PyModule_GetDict(m); Qd_Error = PyMac_GetOSErrException(); if (Qd_Error == NULL || diff --git a/Mac/Modules/qdoffs/_Qdoffsmodule.c b/Mac/Modules/qdoffs/_Qdoffsmodule.c --- a/Mac/Modules/qdoffs/_Qdoffsmodule.c +++ b/Mac/Modules/qdoffs/_Qdoffsmodule.c @@ -4,7 +4,7 @@ #include "Python.h" -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) #include "pymactoolbox.h" @@ -634,7 +634,7 @@ #endif /* __LP64__ */ static PyMethodDef Qdoffs_methods[] = { -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) {"NewGWorld", (PyCFunction)Qdoffs_NewGWorld, 1, PyDoc_STR("(short PixelDepth, Rect boundsRect, CTabHandle cTable, GDHandle aGDevice, GWorldFlags flags) -> (GWorldPtr offscreenGWorld)")}, {"LockPixels", (PyCFunction)Qdoffs_LockPixels, 1, @@ -691,7 +691,7 @@ void init_Qdoffs(void) { PyObject *m; -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) PyObject *d; @@ -702,7 +702,7 @@ #endif /* __LP64__ */ m = Py_InitModule("_Qdoffs", Qdoffs_methods); -#ifndef __LP64__ +#if !defined(__LP64__) && !defined(MAC_OS_X_VERSION_10_7) d = PyModule_GetDict(m); Qdoffs_Error = PyMac_GetOSErrException(); if (Qdoffs_Error == NULL ||