[pypy-svn] r40415 - pypy/dist/pypy/translator/c

mwh at codespeak.net mwh at codespeak.net
Tue Mar 13 09:21:21 CET 2007


Author: mwh
Date: Tue Mar 13 09:21:19 2007
New Revision: 40415

Modified:
   pypy/dist/pypy/translator/c/gc.py
Log:
fix the windows builds again
(thanks Scott Dial)


Modified: pypy/dist/pypy/translator/c/gc.py
==============================================================================
--- pypy/dist/pypy/translator/c/gc.py	(original)
+++ pypy/dist/pypy/translator/c/gc.py	Tue Mar 13 09:21:19 2007
@@ -218,8 +218,10 @@
         if sys.platform == "linux2":
             yield "#define _REENTRANT 1"
             yield "#define GC_LINUX_THREADS 1"
+        if sys.platform != "win32":
+            # GC_REDIRECT_TO_LOCAL is not supported on Win32 by gc6.8
+            yield "#define GC_REDIRECT_TO_LOCAL 1"
         yield "#define GC_I_HIDE_POINTERS 1"
-        yield "#define GC_REDIRECT_TO_LOCAL 1"
         yield '#include <gc/gc.h>'
         yield '#define USING_BOEHM_GC'
 



More information about the Pypy-commit mailing list