[pypy-commit] pypy release-2.2.x: fix translation, be more like cpython

mattip noreply at buildbot.pypy.org
Sun Nov 24 19:28:01 CET 2013


Author: Matti Picus <matti.picus at gmail.com>
Branch: release-2.2.x
Changeset: r68311:11ffafdff4d6
Date: 2013-11-24 20:22 +0200
http://bitbucket.org/pypy/pypy/changeset/11ffafdff4d6/

Log:	fix translation, be more like cpython (grafted from
	d45c21ada48feb930b2afff45ce9f032df5acc98)

diff --git a/pypy/module/cpyext/include/pyconfig.h b/pypy/module/cpyext/include/pyconfig.h
--- a/pypy/module/cpyext/include/pyconfig.h
+++ b/pypy/module/cpyext/include/pyconfig.h
@@ -25,16 +25,18 @@
 #define Py_UNICODE_SIZE 2
 #endif
 
-#if defined(_MSC_VER)
-   /* So MSVC users need not specify the .lib file in
-    * their Makefile (other compilers are generally
-    * taken care of by distutils.) */
-#    ifdef _DEBUG
-#        error("debug first with cpython")    
-#        pragma comment(lib,"python27.lib")
-#    else
-#        pragma comment(lib,"python27.lib")
-#    endif /* _DEBUG */
+#ifndef Py_BUILD_CORE /* not building the core - must be an ext */
+#    if defined(_MSC_VER)
+     /* So MSVC users need not specify the .lib file in
+      * their Makefile (other compilers are generally
+      * taken care of by distutils.) */
+#        ifdef _DEBUG
+#            error("debug first with cpython")    
+#            pragma comment(lib,"python27.lib")
+#        else
+#            pragma comment(lib,"python27.lib")
+#        endif /* _DEBUG */
+#    endif
 #endif /* _MSC_VER */
 
 


More information about the pypy-commit mailing list