From: Jack Jansen Date: Fri, 19 Jan 2001 23:45:57 +0000 (+0000) Subject: Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of... X-Git-Tag: v2.1a1~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=726d873887c9c7bc9a8296780780b3b6975d1240;p=python Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of a funny define makes portable code impossible:-( --- diff --git a/Mac/Modules/icgluemodule.c b/Mac/Modules/icgluemodule.c index 4c3c4954ef..2189996de8 100644 --- a/Mac/Modules/icgluemodule.c +++ b/Mac/Modules/icgluemodule.c @@ -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"