[Python-checkins] r72882 - python/trunk/Modules/posixmodule.c
antoine.pitrou
python-checkins at python.org
Sun May 24 14:15:05 CEST 2009
Author: antoine.pitrou
Date: Sun May 24 14:15:04 2009
New Revision: 72882
Log:
Fix build under Windows
Modified:
python/trunk/Modules/posixmodule.c
Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c (original)
+++ python/trunk/Modules/posixmodule.c Sun May 24 14:15:04 2009
@@ -312,8 +312,7 @@
#endif /* UNION_WAIT */
/* Issue #1983: pid_t can be longer than a C long on some systems */
-#ifdef SIZEOF_PID_T
-#if SIZEOF_PID_T == SIZEOF_INT
+#if !defined(SIZEOF_PID_T) || SIZEOF_PID_T == SIZEOF_INT
#define PARSE_PID "i"
#define PyLong_FromPid PyInt_FromLong
#define PyLong_AsPid PyInt_AsLong
@@ -327,7 +326,6 @@
#define PyLong_AsPid PyInt_AsLongLong
#else
#error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)"
-#endif
#endif /* SIZEOF_PID_T */
/* Don't use the "_r" form if we don't need it (also, won't have a
More information about the Python-checkins
mailing list