Commits

mattip  committed d45c21a

fix translation, be more like cpython

  • Participants
  • Parent commits 6d65219

Comments (0)

Files changed (1)

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

 #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 */