[pypy-svn] r18091 - in pypy/dist/pypy/translator/c: . src

pedronis at codespeak.net pedronis at codespeak.net
Mon Oct 3 02:43:58 CEST 2005


Author: pedronis
Date: Mon Oct  3 02:43:56 2005
New Revision: 18091

Modified:
   pypy/dist/pypy/translator/c/genc.py
   pypy/dist/pypy/translator/c/src/g_prerequisite.h
Log:
avoid requiring the .lib on windows for standalone




Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py	(original)
+++ pypy/dist/pypy/translator/c/genc.py	Mon Oct  3 02:43:56 2005
@@ -206,6 +206,7 @@
     for key, value in defines.items():
         print >> f, '#define %s %s' % (key, value)
 
+    print >> f, '#define Py_BUILD_CORE  /* for Windows: avoid pulling libs in */'
     print >> f, '#include "pyconfig.h"'
     for line in database.gcpolicy.pre_pre_gc_code():
         print >> f, line

Modified: pypy/dist/pypy/translator/c/src/g_prerequisite.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/g_prerequisite.h	(original)
+++ pypy/dist/pypy/translator/c/src/g_prerequisite.h	Mon Oct  3 02:43:56 2005
@@ -6,9 +6,6 @@
  * executables (which are *not* linked against CPython then),
  * to get the convenient macro definitions
  */
-#ifdef PYPY_STANDALONE
-#define Py_BUILD_CORE  /* for Windows: avoid pulling libs in */
-#endif
 #include "Python.h"
 
 



More information about the Pypy-commit mailing list