Kaydet (Commit) 7d697c7e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

external/python33: adapt to -Werror,-Wundef being enabled for clang-cl

Change-Id: I82bedca98ed5ec22b434c7b25c87bf5d77e7ed21
üst 69ae9210
......@@ -35,6 +35,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,python3,\
external/python33/python-msvc-disable-sse2.patch.1 \
external/python33/python-lsan.patch.0 \
external/python33/ubsan.patch.0 \
external/python33/clang-cl.patch.0 \
))
ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD SOLARIS,$(OS)),)
......
--- Include/pyport.h
+++ Include/pyport.h
@@ -219,7 +219,7 @@
/* Smallest negative value of type Py_ssize_t. */
#define PY_SSIZE_T_MIN (-PY_SSIZE_T_MAX-1)
-#if SIZEOF_PID_T > SIZEOF_LONG
+#if defined SIZEOF_PID_T && SIZEOF_PID_T > SIZEOF_LONG
# error "Python doesn't support sizeof(pid_t) > sizeof(long)"
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment