Files
MINGW-packages/mingw-w64-python3/0640-mingw-x86_64-size_t-format-specifier-pid_t.patch

13 lines
546 B
Diff

diff -Naur Python-3.7.0-orig/Include/pyport.h Python-3.7.0/Include/pyport.h
--- Python-3.7.0-orig/Include/pyport.h 2018-07-12 10:21:05.491125700 +0300
+++ Python-3.7.0/Include/pyport.h 2018-07-12 10:21:59.124019900 +0300
@@ -156,6 +156,8 @@
# define PY_FORMAT_SIZE_T "l"
# elif defined(MS_WINDOWS)
# define PY_FORMAT_SIZE_T "I"
+# elif defined(__MINGW32__) && defined(__USE_MINGW_ANSI_STDIO)
+# define PY_FORMAT_SIZE_T "z"
# else
# error "This platform's pyconfig.h needs to define PY_FORMAT_SIZE_T"
# endif