summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-04-19 10:40:48 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-04-19 10:40:48 (GMT)
commit1cc369ca86cfbcc61fb156ae82e872c533e9f478 (patch)
tree015096ddeada86a1a5f4322ff0ad099e6c236aa4 /Include
parent1fea321502631184f8c3f1580159e3f2bcc5ee4b (diff)
downloadcpython-1cc369ca86cfbcc61fb156ae82e872c533e9f478.zip
cpython-1cc369ca86cfbcc61fb156ae82e872c533e9f478.tar.gz
cpython-1cc369ca86cfbcc61fb156ae82e872c533e9f478.tar.bz2
Merged revisions 71743 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r71743 | ronald.oussoren | 2009-04-19 12:38:20 +0200 (Sun, 19 Apr 2009) | 2 lines Fix for issue5657. ........
Diffstat (limited to 'Include')
-rw-r--r--Include/pymacconfig.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/pymacconfig.h b/Include/pymacconfig.h
index 7b20431..3a3428c 100644
--- a/Include/pymacconfig.h
+++ b/Include/pymacconfig.h
@@ -73,6 +73,18 @@
#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754
#endif /* __BIG_ENDIAN */
+ /*
+ * The definition in pyconfig.h is only valid on the OS release
+ * where configure ran on and not necessarily for all systems where
+ * the executable can be used on.
+ *
+ * Specifically: OSX 10.4 has limited supported for '%zd', while
+ * 10.5 has full support for '%zd'. A binary built on 10.5 won't
+ * work properly on 10.4 unless we surpress the definition
+ * of PY_FORMAT_SIZE_T
+ */
+#undef PY_FORMAT_SIZE_T
+
#endif /* defined(_APPLE__) */