summaryrefslogtreecommitdiffstats
path: root/Lib/email/mime
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/email/mime')
0 files changed, 0 insertions, 0 deletions
SUPPORTS_QUICKTIME */ /* Qdoffs exports */ -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME extern PyObject *GWorldObj_New(GWorldPtr); extern int GWorldObj_Convert(PyObject *, GWorldPtr *); -#endif /* !__LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ /* Qt exports */ -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME extern PyObject *TrackObj_New(Track); extern int TrackObj_Convert(PyObject *, Track *); extern PyObject *MovieObj_New(Movie); @@ -169,7 +184,7 @@ extern PyObject *UserDataObj_New(UserData); extern int UserDataObj_Convert(PyObject *, UserData *); extern PyObject *MediaObj_New(Media); extern int MediaObj_Convert(PyObject *, Media *); -#endif /* !__LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ /* Res exports */ extern PyObject *ResObj_New(Handle); @@ -178,17 +193,17 @@ extern PyObject *OptResObj_New(Handle); extern int OptResObj_Convert(PyObject *, Handle *); /* TE exports */ -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME extern PyObject *TEObj_New(TEHandle); extern int TEObj_Convert(PyObject *, TEHandle *); -#endif /* !__LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ /* Win exports */ -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME extern PyObject *WinObj_New(WindowPtr); extern int WinObj_Convert(PyObject *, WindowPtr *); extern PyObject *WinObj_WhichWindow(WindowPtr); -#endif /* !__LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ /* CF exports */ extern PyObject *CFObj_New(CFTypeRef); diff --git a/Mac/Modules/ColorPickermodule.c b/Mac/Modules/ColorPickermodule.c index 688c468..060ce24 100644 --- a/Mac/Modules/ColorPickermodule.c +++ b/Mac/Modules/ColorPickermodule.c @@ -28,7 +28,7 @@ PERFORMANCE OF THIS SOFTWARE. /* ----------------------------------------------------- */ -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME static char cp_GetColor__doc__[] = "GetColor(prompt, (r, g, b)) -> (r, g, b), ok" @@ -49,14 +49,14 @@ cp_GetColor(PyObject *self, PyObject *args) return Py_BuildValue("O&h", QdRGB_New, &outColor, ok); } -#endif /* __LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ /* List of methods defined in the module */ static struct PyMethodDef cp_methods[] = { -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME {"GetColor", (PyCFunction)cp_GetColor, METH_VARARGS, cp_GetColor__doc__}, -#endif /* __LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ {NULL, (PyCFunction)NULL, 0, NULL} /* sentinel */ }; @@ -87,4 +87,3 @@ void initColorPicker(void) if (PyErr_Occurred()) Py_FatalError("can't initialize module ColorPicker"); } - diff --git a/Mac/Modules/MacOS.c b/Mac/Modules/MacOS.c index 28de4f5..83c203d 100644 --- a/Mac/Modules/MacOS.c +++ b/Mac/Modules/MacOS.c @@ -299,7 +299,7 @@ MacOS_GetCreatorAndType(PyObject *self, PyObject *args) FileInfo* finfo; if (!PyArg_ParseTuple(args, "O&", PyMac_GetFSRef, &ref)) { -#ifndef __LP64__ +#if APPLE_SUPPORTS_QUICKTIME /* This function is documented to take an FSSpec as well, * which only works in 32-bit mode. */ @@ -324,9 +324,9 @@ MacOS_GetCreatorAndType(PyObject *self, PyObject *args) Py_DECREF(creator); Py_DECREF(type); return res; -#else /* __LP64__ */ +#else /* APPLE_SUPPORTS_QUICKTIME */ return NULL; -#endif /* __LP64__ */ +#endif /* APPLE_SUPPORTS_QUICKTIME */ } err = FSGetCatalogInfo(&ref, @@ -372,7 +372,7 @@ MacOS_SetCreatorAndType(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "O&O&O&", PyMac_GetFSRef, &ref, PyMac_GetOSType, &creator, PyMa