summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-01 01:08:29 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-01 01:08:29 (GMT)
commitc7403ed183842503f24b36a82980d128db64d2d6 (patch)
treebeee288233cce54ef399763273dff5900d072593 /Include
parentc51ee69b27a35bb45e501766dd33674eae7ddb30 (diff)
downloadcpython-c7403ed183842503f24b36a82980d128db64d2d6.zip
cpython-c7403ed183842503f24b36a82980d128db64d2d6.tar.gz
cpython-c7403ed183842503f24b36a82980d128db64d2d6.tar.bz2
Add a clause to the PY_FORMAT_SIZE_T to stop warnings on 32 bit intel
linux with gcc 4.0.2, after talking to Tim. <ymmit> But it won't break anything anywhere, so don't worry :-)
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index df97b99..9b5c54d 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -124,7 +124,9 @@ typedef Py_intptr_t Py_ssize_t;
* Py_ssize_t on the platform.
*/
#ifndef PY_FORMAT_SIZE_T
-# if SIZEOF_SIZE_T == SIZEOF_LONG
+# if SIZEOF_SIZE_T == SIZEOF_INT
+# define PY_FORMAT_SIZE_T ""
+# elif SIZEOF_SIZE_T == SIZEOF_LONG
# define PY_FORMAT_SIZE_T "l"
# elif defined(MS_WINDOWS)
# define PY_FORMAT_SIZE_T "I"