]> granicus.if.org Git - python/commitdiff
Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of...
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 19 Jan 2001 23:45:57 +0000 (23:45 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 19 Jan 2001 23:45:57 +0000 (23:45 +0000)
Mac/Modules/icgluemodule.c

index 4c3c4954ef30739e282962fd62438f78f2be2d2e..2189996de8d7d434cc468a7d14e21471a60a0d60 100644 (file)
@@ -34,6 +34,14 @@ PERFORMANCE OF THIS SOFTWARE.
 
 extern int ResObj_Convert(PyObject *, Handle *); /* From Resmodule.c */
 
+#if TARGET_API_MAC_CARBON
+/* The Carbon headers define PRAGMA_ALIGN_SUPPORT to something illegal,
+** because you shouldn't use it for Carbon. All good and well, but portable
+** code still needs it. So, we undefine it here.
+*/
+#undef PRAGMA_ALIGN_SUPPORTED
+#define PRAGMA_ALIGN_SUPPORTED 0
+#endif /* TARGET_API_MAC_CARBON */
 
 #include "ICAPI.h"