annotate DEPENDENCIES/mingw32/Python27/include/pymacconfig.h @ 133:4acb5d8d80b6 tip

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