summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorsashk <b@compuix.com>2016-09-16 09:08:45 -0400
committersashk <b@compuix.com>2016-09-16 09:08:45 -0400
commitfd2f85d6e4e8abc9c943cf56cf45527d522c7882 (patch)
tree6f54c837aa533025e29153707cd4df5ffaf7fd06 /Python
parent75b2c5f82de28484a296d9727903fe6b7d033ed7 (diff)
downloadcpython-git-fd2f85d6e4e8abc9c943cf56cf45527d522c7882.tar.gz
Issue #27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal of
deprecated QuickTime/QuickTime.h header file. Patch by sashk.
Diffstat (limited to 'Python')
-rw-r--r--Python/mactoolboxglue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/mactoolboxglue.c b/Python/mactoolboxglue.c
index 92bf3e8587..a38c09a485 100644
--- a/Python/mactoolboxglue.c
+++ b/Python/mactoolboxglue.c
@@ -106,7 +106,7 @@ PyMac_Error(OSErr err)
}
-#ifndef __LP64__
+#if APPLE_SUPPORTS_QUICKTIME
OSErr
PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
{
@@ -154,7 +154,7 @@ PyMac_GetFullPathname(FSSpec *fss, char *path, int len)
Py_XDECREF(fs);
return err;
}
-#endif /* !__LP64__ */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Convert a 4-char string object argument to an OSType value */
int
@@ -419,7 +419,7 @@ GLUE_CONVERT(RGBColor, QdRGB_Convert, "Carbon.Qd")
GLUE_NEW(GWorldPtr, GWorldObj_New, "Carbon.Qdoffs")
GLUE_CONVERT(GWorldPtr, GWorldObj_Convert, "Carbon.Qdoffs")
-#ifndef __LP64__
+#if APPLE_SUPPORTS_QUICKTIME
GLUE_NEW(Track, TrackObj_New, "Carbon.Qt")
GLUE_CONVERT(Track, TrackObj_Convert, "Carbon.Qt")
GLUE_NEW(Movie, MovieObj_New, "Carbon.Qt")
@@ -432,7 +432,7 @@ GLUE_NEW(UserData, UserDataObj_New, "Carbon.Qt")
GLUE_CONVERT(UserData, UserDataObj_Convert, "Carbon.Qt")
GLUE_NEW(Media, MediaObj_New, "Carbon.Qt")
GLUE_CONVERT(Media, MediaObj_Convert, "Carbon.Qt")
-#endif /* !__LP64__ */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
GLUE_NEW(Handle, ResObj_New, "Carbon.Res")
GLUE_CONVERT(Handle, ResObj_Convert, "Carbon.Res")