mirror of
https://github.com/python/cpython.git
synced 2025-08-10 20:08:47 +00:00
Backport r67982
This commit is contained in:
parent
ef29f8634c
commit
989707b24a
1 changed files with 14 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
# undef SIZEOF_SIZE_T
|
# undef SIZEOF_SIZE_T
|
||||||
# undef SIZEOF_TIME_T
|
# undef SIZEOF_TIME_T
|
||||||
# undef SIZEOF_VOID_P
|
# undef SIZEOF_VOID_P
|
||||||
|
# undef SIZEOF__BOOL
|
||||||
|
# undef WORDS_BIGENDIAN
|
||||||
|
|
||||||
# undef VA_LIST_IS_ARRAY
|
# undef VA_LIST_IS_ARRAY
|
||||||
# if defined(__LP64__) && defined(__x86_64__)
|
# if defined(__LP64__) && defined(__x86_64__)
|
||||||
|
@ -28,12 +30,19 @@
|
||||||
|
|
||||||
# undef SIZEOF_LONG
|
# undef SIZEOF_LONG
|
||||||
# ifdef __LP64__
|
# ifdef __LP64__
|
||||||
|
# define SIZEOF__BOOL 1
|
||||||
|
# define SIZEOF__BOOL 1
|
||||||
# define SIZEOF_LONG 8
|
# define SIZEOF_LONG 8
|
||||||
# define SIZEOF_PTHREAD_T 8
|
# define SIZEOF_PTHREAD_T 8
|
||||||
# define SIZEOF_SIZE_T 8
|
# define SIZEOF_SIZE_T 8
|
||||||
# define SIZEOF_TIME_T 8
|
# define SIZEOF_TIME_T 8
|
||||||
# define SIZEOF_VOID_P 8
|
# define SIZEOF_VOID_P 8
|
||||||
# else
|
# else
|
||||||
|
# ifdef __ppc__
|
||||||
|
# define SIZEOF__BOOL 4
|
||||||
|
# else
|
||||||
|
# define SIZEOF__BOOL 1
|
||||||
|
# endif
|
||||||
# define SIZEOF_LONG 4
|
# define SIZEOF_LONG 4
|
||||||
# define SIZEOF_PTHREAD_T 4
|
# define SIZEOF_PTHREAD_T 4
|
||||||
# define SIZEOF_SIZE_T 4
|
# define SIZEOF_SIZE_T 4
|
||||||
|
@ -54,6 +63,11 @@
|
||||||
|
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#ifdef __BIG_ENDIAN__
|
||||||
|
#define WORDS_BIGENDIAN 1
|
||||||
|
#endif /* __BIG_ENDIAN */
|
||||||
|
|
||||||
|
|
||||||
#endif /* defined(_APPLE__) */
|
#endif /* defined(_APPLE__) */
|
||||||
|
|
||||||
#endif /* PYMACCONFIG_H */
|
#endif /* PYMACCONFIG_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue