diff options
author | Guido van Rossum <guido@python.org> | 1998-05-15 20:22:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-15 20:22:08 (GMT) |
commit | 859b16c8472928ee6aee9b2a1d281e310dd51d1e (patch) | |
tree | 6d257557d266d288aaf6743ff09479a8b1981cc9 /Python | |
parent | 3d9a0585e1e32c1e6a358b9fdec8826eda7b44fd (diff) | |
download | cpython-859b16c8472928ee6aee9b2a1d281e310dd51d1e.zip cpython-859b16c8472928ee6aee9b2a1d281e310dd51d1e.tar.gz cpython-859b16c8472928ee6aee9b2a1d281e310dd51d1e.tar.bz2 |
In debug mode on MS Windows, DLLs are called foo_d.pyd or foo_d.dll.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/importdl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 7a0de08..1a994ce 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -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 |