Commits

mattip committed ea530af

fix for issue 1635, building extension module with MSVC

Comments (0)

Files changed (1)

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 */
+#endif /* _MSC_VER */
+
+
+
 #ifdef __cplusplus
 }
 #endif