[pypy-svn] r18061 - pypy/dist/pypy/translator/c
arigo at codespeak.net
arigo at codespeak.net
Sat Oct 1 18:05:46 CEST 2005
Author: arigo
Date: Sat Oct 1 18:05:45 2005
New Revision: 18061
Modified:
pypy/dist/pypy/translator/c/genc.py
Log:
Include CPython's pyconfig before any other header, for the #define tweaks it provides.
Note that we cannot include the whole of Python.h before gc.h in the presence of thread.
Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py (original)
+++ pypy/dist/pypy/translator/c/genc.py Sat Oct 1 18:05:45 2005
@@ -206,6 +206,7 @@
for key, value in defines.items():
print >> f, '#define %s %s' % (key, value)
+ print >> f, '#include "pyconfig.h"'
for line in database.gcpolicy.pre_pre_gc_code():
print >> f, line
@@ -245,6 +246,7 @@
for key, value in defines.items():
print >> f, '#define %s %s' % (key, value)
+ print >> f, '#include "pyconfig.h"'
for line in database.gcpolicy.pre_pre_gc_code():
print >> f, line
More information about the Pypy-commit
mailing list