aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python/src/Include/pymactoolbox.h
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/tools/python/src/Include/pymactoolbox.h
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/python/src/Include/pymactoolbox.h')
-rw-r--r--contrib/tools/python/src/Include/pymactoolbox.h78
1 files changed, 39 insertions, 39 deletions
diff --git a/contrib/tools/python/src/Include/pymactoolbox.h b/contrib/tools/python/src/Include/pymactoolbox.h
index 6e48ca36a2..77b86a77e4 100644
--- a/contrib/tools/python/src/Include/pymactoolbox.h
+++ b/contrib/tools/python/src/Include/pymactoolbox.h
@@ -9,24 +9,24 @@
#include <Carbon/Carbon.h>
-/*
-** Issue #27806: Workaround for gcc 4.x which does not have _has_include.
-*/
-#ifndef __has_include
-#define __has_include(x) 0
-#endif
-/* Workaround */
-
-#if __has_include(<Availability.h>)
-#include <Availability.h>
-#define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) && !__LP64__
-#else
-#define APPLE_SUPPORTS_QUICKTIME !__LP64__
-#endif
-
-#if APPLE_SUPPORTS_QUICKTIME
+/*
+** Issue #27806: Workaround for gcc 4.x which does not have _has_include.
+*/
+#ifndef __has_include
+#define __has_include(x) 0
+#endif
+/* Workaround */
+
+#if __has_include(<Availability.h>)
+#include <Availability.h>
+#define APPLE_SUPPORTS_QUICKTIME (__MAC_OS_X_VERSION_MAX_ALLOWED < 101200) && !__LP64__
+#else
+#define APPLE_SUPPORTS_QUICKTIME !__LP64__
+#endif
+
+#if APPLE_SUPPORTS_QUICKTIME
#include <QuickTime/QuickTime.h>
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/*
** Helper routines for error codes and such.
@@ -36,10 +36,10 @@ extern PyObject *PyMac_OSErrException; /* Exception for OSErr */
PyObject *PyMac_GetOSErrException(void); /* Initialize & return it */
PyObject *PyErr_Mac(PyObject *, int); /* Exception with a mac error */
PyObject *PyMac_Error(OSErr); /* Uses PyMac_GetOSErrException */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern OSErr PyMac_GetFullPathname(FSSpec *, char *, int); /* convert
fsspec->path */
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/*
** These conversion routines are defined in mactoolboxglue.c itself.
@@ -124,54 +124,54 @@ extern PyObject *CmpInstObj_New(ComponentInstance);
extern int CmpInstObj_Convert(PyObject *, ComponentInstance *);
/* Ctl exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *CtlObj_New(ControlHandle);
extern int CtlObj_Convert(PyObject *, ControlHandle *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Dlg exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *DlgObj_New(DialogPtr);
extern int DlgObj_Convert(PyObject *, DialogPtr *);
extern PyObject *DlgObj_WhichDialog(DialogPtr);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Drag exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *DragObj_New(DragReference);
extern int DragObj_Convert(PyObject *, DragReference *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* List exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *ListObj_New(ListHandle);
extern int ListObj_Convert(PyObject *, ListHandle *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Menu exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *MenuObj_New(MenuHandle);
extern int MenuObj_Convert(PyObject *, MenuHandle *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Qd exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *GrafObj_New(GrafPtr);
extern int GrafObj_Convert(PyObject *, GrafPtr *);
extern PyObject *BMObj_New(BitMapPtr);
extern int BMObj_Convert(PyObject *, BitMapPtr *);
extern PyObject *QdRGB_New(RGBColor *);
extern int QdRGB_Convert(PyObject *, RGBColor *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Qdoffs exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *GWorldObj_New(GWorldPtr);
extern int GWorldObj_Convert(PyObject *, GWorldPtr *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Qt exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *TrackObj_New(Track);
extern int TrackObj_Convert(PyObject *, Track *);
extern PyObject *MovieObj_New(Movie);
@@ -184,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 /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Res exports */
extern PyObject *ResObj_New(Handle);
@@ -193,17 +193,17 @@ extern PyObject *OptResObj_New(Handle);
extern int OptResObj_Convert(PyObject *, Handle *);
/* TE exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *TEObj_New(TEHandle);
extern int TEObj_Convert(PyObject *, TEHandle *);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* Win exports */
-#if APPLE_SUPPORTS_QUICKTIME
+#if APPLE_SUPPORTS_QUICKTIME
extern PyObject *WinObj_New(WindowPtr);
extern int WinObj_Convert(PyObject *, WindowPtr *);
extern PyObject *WinObj_WhichWindow(WindowPtr);
-#endif /* APPLE_SUPPORTS_QUICKTIME */
+#endif /* APPLE_SUPPORTS_QUICKTIME */
/* CF exports */
extern PyObject *CFObj_New(CFTypeRef);