mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Undefine and redefine PRAGMA_ALIGN_SUPPORTED under Carbon. Apple's "solution" of a funny define makes portable code impossible:-(
This commit is contained in:
parent
c7050d9bb9
commit
726d873887
1 changed files with 8 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue