diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-04-19 10:38:20 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-04-19 10:38:20 (GMT) |
commit | 6c0b872f85e0e4f0cdd873a4240d46e56396f628 (patch) | |
tree | 3fe95d5bd9d12fda958eaac99c80efd53d10c2c4 /Include | |
parent | 82d1cf1eccef72eac1ec999bbe85b654f76d398e (diff) | |
download | cpython-6c0b872f85e0e4f0cdd873a4240d46e56396f628.zip cpython-6c0b872f85e0e4f0cdd873a4240d46e56396f628.tar.gz cpython-6c0b872f85e0e4f0cdd873a4240d46e56396f628.tar.bz2 |
Fix for issue5657.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pymacconfig.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/pymacconfig.h b/Include/pymacconfig.h index a8679af..b2cc0b7 100644 --- a/Include/pymacconfig.h +++ b/Include/pymacconfig.h @@ -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__) */ |