4 * This file moves some of the autoconf magic to compile-time
5 * when building on MacOSX. This is needed for building 4-way
6 * universal binaries and for 64-bit universal binaries because
7 * the values redefined below aren't configure-time constant but
8 * only compile-time constant in these scenarios.
11 #if defined(__APPLE__)
14 # undef SIZEOF_PTHREAD_T
19 # undef WORDS_BIGENDIAN
20 # undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754
21 # undef DOUBLE_IS_BIG_ENDIAN_IEEE754
22 # undef DOUBLE_IS_LITTLE_ENDIAN_IEEE754
23 # undef HAVE_GCC_ASM_FOR_X87
25 # undef VA_LIST_IS_ARRAY
26 # if defined(__LP64__) && defined(__x86_64__)
27 # define VA_LIST_IS_ARRAY 1
30 # undef HAVE_LARGEFILE_SUPPORT
32 # define HAVE_LARGEFILE_SUPPORT 1
37 # define SIZEOF__BOOL 1
38 # define SIZEOF__BOOL 1
39 # define SIZEOF_LONG 8
40 # define SIZEOF_PTHREAD_T 8
41 # define SIZEOF_SIZE_T 8
42 # define SIZEOF_TIME_T 8
43 # define SIZEOF_VOID_P 8
46 # define SIZEOF__BOOL 4
48 # define SIZEOF__BOOL 1
50 # define SIZEOF_LONG 4
51 # define SIZEOF_PTHREAD_T 4
52 # define SIZEOF_SIZE_T 4
53 # define SIZEOF_TIME_T 4
54 # define SIZEOF_VOID_P 4
57 # if defined(__LP64__)
58 /* MacOSX 10.4 (the first release to suppport 64-bit code
59 * at all) only supports 64-bit in the UNIX layer.
60 * Therefore surpress the toolbox-glue in 64-bit mode.
63 /* In 64-bit mode setpgrp always has no argments, in 32-bit
64 * mode that depends on the compilation environment
66 # undef SETPGRP_HAVE_ARG
71 #define WORDS_BIGENDIAN 1
72 #define DOUBLE_IS_BIG_ENDIAN_IEEE754
74 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754
75 #endif /* __BIG_ENDIAN */
78 # define HAVE_GCC_ASM_FOR_X87
82 * The definition in pyconfig.h is only valid on the OS release
83 * where configure ran on and not necessarily for all systems where
84 * the executable can be used on.
86 * Specifically: OSX 10.4 has limited supported for '%zd', while
87 * 10.5 has full support for '%zd'. A binary built on 10.5 won't
88 * work properly on 10.4 unless we surpress the definition
91 #undef PY_FORMAT_SIZE_T
94 #endif /* defined(_APPLE__) */
96 #endif /* PYMACCONFIG_H */