]>
Commit | Line | Data |
---|---|---|
c8042e10 DM |
1 | #ifndef PYMACCONFIG_H\r |
2 | #define PYMACCONFIG_H\r | |
3 | /*\r | |
4 | * This file moves some of the autoconf magic to compile-time\r | |
5 | * when building on MacOSX. This is needed for building 4-way\r | |
6 | * universal binaries and for 64-bit universal binaries because\r | |
7 | * the values redefined below aren't configure-time constant but\r | |
8 | * only compile-time constant in these scenarios.\r | |
9 | */\r | |
10 | \r | |
11 | #if defined(__APPLE__)\r | |
12 | \r | |
13 | # undef SIZEOF_LONG\r | |
14 | # undef SIZEOF_PTHREAD_T\r | |
15 | # undef SIZEOF_SIZE_T\r | |
16 | # undef SIZEOF_TIME_T\r | |
17 | # undef SIZEOF_VOID_P\r | |
18 | # undef SIZEOF__BOOL\r | |
19 | # undef SIZEOF_UINTPTR_T\r | |
20 | # undef SIZEOF_PTHREAD_T\r | |
21 | # undef WORDS_BIGENDIAN\r | |
22 | # undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754\r | |
23 | # undef DOUBLE_IS_BIG_ENDIAN_IEEE754\r | |
24 | # undef DOUBLE_IS_LITTLE_ENDIAN_IEEE754\r | |
25 | # undef HAVE_GCC_ASM_FOR_X87\r | |
26 | \r | |
27 | # undef VA_LIST_IS_ARRAY\r | |
28 | # if defined(__LP64__) && defined(__x86_64__)\r | |
29 | # define VA_LIST_IS_ARRAY 1\r | |
30 | # endif\r | |
31 | \r | |
32 | # undef HAVE_LARGEFILE_SUPPORT\r | |
33 | # ifndef __LP64__\r | |
34 | # define HAVE_LARGEFILE_SUPPORT 1\r | |
35 | # endif\r | |
36 | \r | |
37 | # undef SIZEOF_LONG\r | |
38 | # ifdef __LP64__\r | |
39 | # define SIZEOF__BOOL 1\r | |
40 | # define SIZEOF__BOOL 1\r | |
41 | # define SIZEOF_LONG 8\r | |
42 | # define SIZEOF_PTHREAD_T 8\r | |
43 | # define SIZEOF_SIZE_T 8\r | |
44 | # define SIZEOF_TIME_T 8\r | |
45 | # define SIZEOF_VOID_P 8\r | |
46 | # define SIZEOF_UINTPTR_T 8\r | |
47 | # define SIZEOF_PTHREAD_T 8\r | |
48 | # else\r | |
49 | # ifdef __ppc__\r | |
50 | # define SIZEOF__BOOL 4\r | |
51 | # else\r | |
52 | # define SIZEOF__BOOL 1\r | |
53 | # endif\r | |
54 | # define SIZEOF_LONG 4\r | |
55 | # define SIZEOF_PTHREAD_T 4\r | |
56 | # define SIZEOF_SIZE_T 4\r | |
57 | # define SIZEOF_TIME_T 4\r | |
58 | # define SIZEOF_VOID_P 4\r | |
59 | # define SIZEOF_UINTPTR_T 4\r | |
60 | # define SIZEOF_PTHREAD_T 4\r | |
61 | # endif\r | |
62 | \r | |
63 | # if defined(__LP64__)\r | |
64 | /* MacOSX 10.4 (the first release to support 64-bit code\r | |
65 | * at all) only supports 64-bit in the UNIX layer.\r | |
66 | * Therefore surpress the toolbox-glue in 64-bit mode.\r | |
67 | */\r | |
68 | \r | |
69 | /* In 64-bit mode setpgrp always has no argments, in 32-bit\r | |
70 | * mode that depends on the compilation environment\r | |
71 | */\r | |
72 | # undef SETPGRP_HAVE_ARG\r | |
73 | \r | |
74 | # endif\r | |
75 | \r | |
76 | #ifdef __BIG_ENDIAN__\r | |
77 | #define WORDS_BIGENDIAN 1\r | |
78 | #define DOUBLE_IS_BIG_ENDIAN_IEEE754\r | |
79 | #else\r | |
80 | #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754\r | |
81 | #endif /* __BIG_ENDIAN */\r | |
82 | \r | |
83 | #ifdef __i386__\r | |
84 | # define HAVE_GCC_ASM_FOR_X87\r | |
85 | #endif\r | |
86 | \r | |
87 | /*\r | |
88 | * The definition in pyconfig.h is only valid on the OS release\r | |
89 | * where configure ran on and not necessarily for all systems where\r | |
90 | * the executable can be used on.\r | |
91 | *\r | |
92 | * Specifically: OSX 10.4 has limited supported for '%zd', while\r | |
93 | * 10.5 has full support for '%zd'. A binary built on 10.5 won't\r | |
94 | * work properly on 10.4 unless we surpress the definition\r | |
95 | * of PY_FORMAT_SIZE_T\r | |
96 | */\r | |
97 | #undef PY_FORMAT_SIZE_T\r | |
98 | \r | |
99 | \r | |
100 | #endif /* defined(_APPLE__) */\r | |
101 | \r | |
102 | #endif /* PYMACCONFIG_H */\r |