summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2008-12-28 19:32:47 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2008-12-28 19:32:47 (GMT)
commit989707b24a4310b1e51f50ecb9564fbefe41f6e6 (patch)
tree8bc3805d587de9757981ffb51721de1f3551120b /Include
parentef29f8634ca5415fda7aa75c9c142d3eaf2edebc (diff)
downloadcpython-989707b24a4310b1e51f50ecb9564fbefe41f6e6.zip
cpython-989707b24a4310b1e51f50ecb9564fbefe41f6e6.tar.gz
cpython-989707b24a4310b1e51f50ecb9564fbefe41f6e6.tar.bz2
Backport r67982
Diffstat (limited to 'Include')
-rw-r--r--Include/pymacconfig.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/Include/pymacconfig.h b/Include/pymacconfig.h
index e864e72..a8679af 100644
--- a/Include/pymacconfig.h
+++ b/Include/pymacconfig.h
@@ -15,6 +15,8 @@
# undef SIZEOF_SIZE_T
# undef SIZEOF_TIME_T
# undef SIZEOF_VOID_P
+# undef SIZEOF__BOOL
+# undef WORDS_BIGENDIAN
# undef VA_LIST_IS_ARRAY
# if defined(__LP64__) && defined(__x86_64__)
@@ -28,12 +30,19 @@
# undef SIZEOF_LONG
# ifdef __LP64__
+# define SIZEOF__BOOL 1
+# define SIZEOF__BOOL 1
# define SIZEOF_LONG 8
# define SIZEOF_PTHREAD_T 8
# define SIZEOF_SIZE_T 8
# define SIZEOF_TIME_T 8
# define SIZEOF_VOID_P 8
# else
+# ifdef __ppc__
+# define SIZEOF__BOOL 4
+# else
+# define SIZEOF__BOOL 1
+# endif
# define SIZEOF_LONG 4
# define SIZEOF_PTHREAD_T 4
# define SIZEOF_SIZE_T 4
@@ -54,6 +63,11 @@
# endif
+#ifdef __BIG_ENDIAN__
+#define WORDS_BIGENDIAN 1
+#endif /* __BIG_ENDIAN */
+
+
#endif /* defined(_APPLE__) */
#endif /* PYMACCONFIG_H */