Skip to content

Commit ff7b562

Browse files
committed
Pragmas that instruct the linker to link against python20.lib (or
python20_d.lib) only active on MSVC++; different library formats needed for different compilers, and it's handled by the Distutils anyways.
1 parent 1d8f57a commit ff7b562

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

PC/config.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@ typedef long intptr_t;
287287

288288
#ifdef MS_WIN32
289289

290-
#ifndef USE_DL_EXPORT
291-
/* So nobody needs to specify the .lib in their Makefile any more */
290+
#if !defined(USE_DL_EXPORT) && defined(_MSC_VER)
291+
/* So nobody using MSVC needs to specify the .lib in their Makefile any
292+
more (other compilers will still need to do so, but that's taken care
293+
of by the Distutils, so it's not a problem). */
292294
#ifdef _DEBUG
293295
#pragma comment(lib,"python20_d.lib")
294296
#else

0 commit comments

Comments
 (0)