mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
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 :-)
This commit is contained in:
parent
c51ee69b27
commit
c7403ed183
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,9 @@ typedef Py_intptr_t Py_ssize_t;
|
||||||
* Py_ssize_t on the platform.
|
* Py_ssize_t on the platform.
|
||||||
*/
|
*/
|
||||||
#ifndef PY_FORMAT_SIZE_T
|
#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"
|
# define PY_FORMAT_SIZE_T "l"
|
||||||
# elif defined(MS_WINDOWS)
|
# elif defined(MS_WINDOWS)
|
||||||
# define PY_FORMAT_SIZE_T "I"
|
# define PY_FORMAT_SIZE_T "I"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue