]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Pragmas that instruct the linker to link against python20.lib (or
authorGreg Ward <gward@python.net>
Sat, 5 Aug 2000 00:58:14 +0000 (00:58 +0000)
committerGreg Ward <gward@python.net>
Sat, 5 Aug 2000 00:58:14 +0000 (00:58 +0000)
python20_d.lib) only active on MSVC++; different library formats needed
for different compilers, and it's handled by the Distutils anyways.

PC/config.h

index f057a75654b749a0ff2ae1f425ebd6be7fd0b02e..9b683734cb51f22643059e059b1968fb10a66a48 100644 (file)
@@ -287,8 +287,10 @@ typedef long intptr_t;
 
 #ifdef MS_WIN32
 
-#ifndef USE_DL_EXPORT
-/* So nobody needs to specify the .lib in their Makefile any more */
+#if !defined(USE_DL_EXPORT) && defined(_MSC_VER)
+/* So nobody using MSVC needs to specify the .lib in their Makefile any
+   more (other compilers will still need to do so, but that's taken care
+   of by the Distutils, so it's not a problem). */
 #ifdef _DEBUG
 #pragma comment(lib,"python20_d.lib")
 #else