Fix for issue5657.

This commit is contained in:
Ronald Oussoren 2009-04-19 10:38:20 +00:00
parent 82d1cf1ecc
commit 6c0b872f85
1 changed files with 12 additions and 0 deletions

View File

@ -67,6 +67,18 @@
#define WORDS_BIGENDIAN 1 #define WORDS_BIGENDIAN 1
#endif /* __BIG_ENDIAN */ #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__) */ #endif /* defined(_APPLE__) */