From: Guido van Rossum Date: Fri, 15 May 1998 20:22:08 +0000 (+0000) Subject: In debug mode on MS Windows, DLLs are called foo_d.pyd or foo_d.dll. X-Git-Tag: v1.5.2a1~617 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=859b16c8472928ee6aee9b2a1d281e310dd51d1e;p=python In debug mode on MS Windows, DLLs are called foo_d.pyd or foo_d.dll. --- diff --git a/Python/importdl.c b/Python/importdl.c index 7a0de085a5..1a994ce15b 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -106,9 +106,14 @@ typedef int (* APIENTRY dl_funcptr)(); #include typedef FARPROC dl_funcptr; #define _DL_FUNCPTR_DEFINED +#ifdef _DEBUG +#define SHORT_EXT "_d.pyd" +#define LONG_EXT "_d.dll" +#else #define SHORT_EXT ".pyd" #define LONG_EXT ".dll" #endif +#endif #ifdef NeXT #define DYNAMIC_LINK