Files
loongoffice/external/python33/clang-cl.patch.0
Stephan Bergmann 7d697c7e22 external/python33: adapt to -Werror,-Wundef being enabled for clang-cl
Change-Id: I82bedca98ed5ec22b434c7b25c87bf5d77e7ed21
2016-03-04 10:11:16 +01:00

12 lines
322 B
Plaintext
Executable File

--- 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