Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:50

0001 #ifndef PYMACCONFIG_H
0002 #define PYMACCONFIG_H
0003      /*
0004       * This file moves some of the autoconf magic to compile-time
0005       * when building on MacOSX. This is needed for building 4-way
0006       * universal binaries and for 64-bit universal binaries because
0007       * the values redefined below aren't configure-time constant but
0008       * only compile-time constant in these scenarios.
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      /* MacOSX 10.4 (the first release to support 64-bit code
0068       * at all) only supports 64-bit in the UNIX layer.
0069       * Therefore suppress the toolbox-glue in 64-bit mode.
0070       */
0071 
0072     /* In 64-bit mode setpgrp always has no arguments, in 32-bit
0073      * mode that depends on the compilation environment
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 /* __BIG_ENDIAN */
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 /* defined(_APPLE__) */
0098 
0099 #endif /* PYMACCONFIG_H */