[pypy-svn] r63039 - pypy/trunk/pypy/translator/c

pedronis at codespeak.net pedronis at codespeak.net
Wed Mar 18 16:34:26 CET 2009


Author: pedronis
Date: Wed Mar 18 16:34:25 2009
New Revision: 63039

Modified:
   pypy/trunk/pypy/translator/c/genc.py
Log:
(iko, pedronis)

fix the failure in test_ll_thread.py:TestUsingBoehm().test_gc_locking

our "thread.h" needs to be included after gc.h and its controlling defines



Modified: pypy/trunk/pypy/translator/c/genc.py
==============================================================================
--- pypy/trunk/pypy/translator/c/genc.py	(original)
+++ pypy/trunk/pypy/translator/c/genc.py	Wed Mar 18 16:34:25 2009
@@ -781,9 +781,9 @@
 
     print >> fi, '#define Py_BUILD_CORE  /* for Windows: avoid pulling libs in */'
     print >> fi, '#include "pyconfig.h"'
-    print >> fi, '#include "src/g_prerequisite.h"'
 
     eci.write_c_header(fi)
+    print >> fi, '#include "src/g_prerequisite.h"'
 
     fi.close()
 
@@ -833,9 +833,9 @@
         print >> fi, '#define %s %s' % (key, value)
 
     print >> fi, '#include "pyconfig.h"'
-    print >> fi, '#include "src/g_prerequisite.h"'
 
     eci.write_c_header(fi)
+    print >> fi, '#include "src/g_prerequisite.h"'
 
     fi.close()
 



More information about the Pypy-commit mailing list