diff options
author | cgohlke <cgohlke@uci.edu> | 2012-08-30 16:21:14 -0700 |
---|---|---|
committer | cgohlke <cgohlke@uci.edu> | 2012-08-30 16:21:14 -0700 |
commit | c9638feb97c1805a2a3d7882aaa489a1b4e8e4dc (patch) | |
tree | 3e6faf3e41818df0d19e8a431897deb1f2c8b59e /Cython/Utility/ModuleSetupCode.c | |
parent | dfdfe69a3c44c39f04024dc799096f7a74485115 (diff) | |
download | cython-c9638feb97c1805a2a3d7882aaa489a1b4e8e4dc.tar.gz |
Define CYTHON_FORMAT_SSIZE_T for use in PyErr_Format and PyString_FromFormat
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 6b4d163a2..4094249b7 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -244,6 +244,12 @@ #define __Pyx_DOCSTR(n) (n) #endif +#if defined(_WIN64) && defined(_MSC_VER) + #define CYTHON_FORMAT_SSIZE_T "z" +#else + #define CYTHON_FORMAT_SSIZE_T PY_FORMAT_SIZE_T +#endif + /////////////// ForceInitThreads.proto /////////////// #ifndef __PYX_FORCE_INIT_THREADS |