[Python-checkins] r71743 - python/trunk/Include/pymacconfig.h

ronald.oussoren python-checkins at python.org
Sun Apr 19 12:38:20 CEST 2009


Author: ronald.oussoren
Date: Sun Apr 19 12:38:20 2009
New Revision: 71743

Log:
Fix for issue5657.


Modified:
   python/trunk/Include/pymacconfig.h

Modified: python/trunk/Include/pymacconfig.h
==============================================================================
--- python/trunk/Include/pymacconfig.h	(original)
+++ python/trunk/Include/pymacconfig.h	Sun Apr 19 12:38:20 2009
@@ -67,6 +67,18 @@
 #define WORDS_BIGENDIAN 1
 #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__) */
 


More information about the Python-checkins mailing list