[pypy-svn] r75435 - in pypy/trunk/pypy/module/cpyext: . include

afa at codespeak.net afa at codespeak.net
Thu Jun 17 15:03:51 CEST 2010


Author: afa
Date: Thu Jun 17 15:03:49 2010
New Revision: 75435

Modified:
   pypy/trunk/pypy/module/cpyext/api.py
   pypy/trunk/pypy/module/cpyext/include/Python.h
Log:
Fix compilation with --cc=mingw32


Modified: pypy/trunk/pypy/module/cpyext/api.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/api.py	(original)
+++ pypy/trunk/pypy/module/cpyext/api.py	Thu Jun 17 15:03:49 2010
@@ -736,6 +736,7 @@
         ("SIZEOF_INT", rffi.INT)
     ]:
         pypy_macros.append("#define %s %s" % (macro_name, rffi.sizeof(size)))
+    pypy_macros.append('')
     
     pypy_macros_h = udir.join('pypy_macros.h')
     pypy_macros_h.write('\n'.join(pypy_macros))

Modified: pypy/trunk/pypy/module/cpyext/include/Python.h
==============================================================================
--- pypy/trunk/pypy/module/cpyext/include/Python.h	(original)
+++ pypy/trunk/pypy/module/cpyext/include/Python.h	Thu Jun 17 15:03:49 2010
@@ -18,6 +18,9 @@
 # ifdef _MSC_VER
 #  include <crtdefs.h>
 # endif
+# ifdef __MINGW32__
+#  include <limits.h>
+# endif
 # include <io.h>
 # define Py_DEPRECATED(VERSION_UNUSED)
 # ifdef Py_BUILD_CORE



More information about the Pypy-commit mailing list