]> granicus.if.org Git - python/commitdiff
In debug mode on MS Windows, DLLs are called foo_d.pyd or foo_d.dll.
authorGuido van Rossum <guido@python.org>
Fri, 15 May 1998 20:22:08 +0000 (20:22 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 15 May 1998 20:22:08 +0000 (20:22 +0000)
Python/importdl.c

index 7a0de085a5cdb36efdab4898e9fb311d19a93760..1a994ce15ba2e487c7cc7aa05cecb47535df066c 100644 (file)
@@ -106,9 +106,14 @@ typedef int (* APIENTRY dl_funcptr)();
 #include <windows.h>
 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