Commit 726d8738 authored by Jack Jansen's avatar Jack Jansen

Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution"...

Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of a funny define makes portable code impossible:-(
parent c7050d9b
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment