1. Pypy
  2. Untitled project
  3. pypy

Commits

Matti Picus  committed 11ffafd

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

  • Participants
  • Parent commits ae406fc
  • Branches release-2.2.x

Comments (0)

Files changed (1)

File pypy/module/cpyext/include/pyconfig.h

View file
  • Ignore whitespace
 #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 */