File indexing completed on 2025-01-18 10:06:50
0001 #ifndef PYMACCONFIG_H
0002 #define PYMACCONFIG_H
0003
0004
0005
0006
0007
0008
0009
0010
0011 #if defined(__APPLE__)
0012
0013 # undef ALIGNOF_MAX_ALIGN_T
0014 # undef SIZEOF_LONG
0015 # undef SIZEOF_LONG_DOUBLE
0016 # undef SIZEOF_PTHREAD_T
0017 # undef SIZEOF_SIZE_T
0018 # undef SIZEOF_TIME_T
0019 # undef SIZEOF_VOID_P
0020 # undef SIZEOF__BOOL
0021 # undef SIZEOF_UINTPTR_T
0022 # undef SIZEOF_PTHREAD_T
0023 # undef WORDS_BIGENDIAN
0024 # undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754
0025 # undef DOUBLE_IS_BIG_ENDIAN_IEEE754
0026 # undef DOUBLE_IS_LITTLE_ENDIAN_IEEE754
0027 # undef HAVE_GCC_ASM_FOR_X87
0028 # undef HAVE_GCC_ASM_FOR_X64
0029
0030 # undef VA_LIST_IS_ARRAY
0031 # if defined(__LP64__) && defined(__x86_64__)
0032 # define VA_LIST_IS_ARRAY 1
0033 # endif
0034
0035 # undef HAVE_LARGEFILE_SUPPORT
0036 # ifndef __LP64__
0037 # define HAVE_LARGEFILE_SUPPORT 1
0038 # endif
0039
0040 # undef SIZEOF_LONG
0041 # ifdef __LP64__
0042 # define SIZEOF__BOOL 1
0043 # define SIZEOF__BOOL 1
0044 # define SIZEOF_LONG 8
0045 # define SIZEOF_PTHREAD_T 8
0046 # define SIZEOF_SIZE_T 8
0047 # define SIZEOF_TIME_T 8
0048 # define SIZEOF_VOID_P 8
0049 # define SIZEOF_UINTPTR_T 8
0050 # define SIZEOF_PTHREAD_T 8
0051 # else
0052 # ifdef __ppc__
0053 # define SIZEOF__BOOL 4
0054 # else
0055 # define SIZEOF__BOOL 1
0056 # endif
0057 # define SIZEOF_LONG 4
0058 # define SIZEOF_PTHREAD_T 4
0059 # define SIZEOF_SIZE_T 4
0060 # define SIZEOF_TIME_T 4
0061 # define SIZEOF_VOID_P 4
0062 # define SIZEOF_UINTPTR_T 4
0063 # define SIZEOF_PTHREAD_T 4
0064 # endif
0065
0066 # if defined(__LP64__)
0067
0068
0069
0070
0071
0072
0073
0074
0075 # undef SETPGRP_HAVE_ARG
0076
0077 # endif
0078
0079 #ifdef __BIG_ENDIAN__
0080 #define WORDS_BIGENDIAN 1
0081 #define DOUBLE_IS_BIG_ENDIAN_IEEE754
0082 #else
0083 #define DOUBLE_IS_LITTLE_ENDIAN_IEEE754
0084 #endif
0085
0086 #if defined(__i386__) || defined(__x86_64__)
0087 # define HAVE_GCC_ASM_FOR_X87
0088 # define ALIGNOF_MAX_ALIGN_T 16
0089 # define HAVE_GCC_ASM_FOR_X64 1
0090 # define SIZEOF_LONG_DOUBLE 16
0091 #else
0092 # define ALIGNOF_MAX_ALIGN_T 8
0093 # define SIZEOF_LONG_DOUBLE 8
0094 #endif
0095
0096
0097 #endif
0098
0099 #endif