Author: Matti Picus <[email protected]>
Branch:
Changeset: r68310:d45c21ada48f
Date: 2013-11-24 20:22 +0200
http://bitbucket.org/pypy/pypy/changeset/d45c21ada48f/
Log: fix translation, be more like cpython
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 */
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit