[pypy-svn] r72942 - pypy/branch/fix-win/pypy/translator/c/src

arigo at codespeak.net arigo at codespeak.net
Sat Mar 27 11:56:47 CET 2010


Author: arigo
Date: Sat Mar 27 11:56:45 2010
New Revision: 72942

Modified:
   pypy/branch/fix-win/pypy/translator/c/src/commondefs.h
Log:
On Windows, define the Python.h-specific "MS_WINDOWS".
Avoids issues when copying a bit of Python.h code;
winstuff.c was never included :-(


Modified: pypy/branch/fix-win/pypy/translator/c/src/commondefs.h
==============================================================================
--- pypy/branch/fix-win/pypy/translator/c/src/commondefs.h	(original)
+++ pypy/branch/fix-win/pypy/translator/c/src/commondefs.h	Sat Mar 27 11:56:45 2010
@@ -76,3 +76,7 @@
 
 #define HAVE_LONG_LONG 1
 #define Py_HUGE_VAL HUGE_VAL
+
+#ifdef _WIN32
+#  define MS_WINDOWS    /* a synonym */
+#endif



More information about the Pypy-commit mailing list