summaryrefslogtreecommitdiffstats
path: root/Python/importdl.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-27 10:15:36 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-27 10:15:36 (GMT)
commit0fbec64c56e5f2644b4e23a458a42ca273fd4888 (patch)
treed5676b63897b48cdfecdb35adc486434ffb80048 /Python/importdl.c
parent464a0a100f163025e87e7aec4b5fa26bce0f18e3 (diff)
downloadcpython-0fbec64c56e5f2644b4e23a458a42ca273fd4888.zip
cpython-0fbec64c56e5f2644b4e23a458a42ca273fd4888.tar.gz
cpython-0fbec64c56e5f2644b4e23a458a42ca273fd4888.tar.bz2
for BorlandC
Diffstat (limited to 'Python/importdl.c')
-rw-r--r--Python/importdl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/importdl.c b/Python/importdl.c
index 6f2016d..0d13a14 100644
--- a/Python/importdl.c
+++ b/Python/importdl.c
@@ -70,6 +70,10 @@ typedef void (*dl_funcptr)();
#define dlerror() "error in dynamic linking"
#endif
+#ifdef __WIN32__
+#define NT
+#endif
+
#ifdef NT
#define DYNAMIC_LINK
#include <windows.h>
@@ -165,7 +169,7 @@ typedef void (*dl_funcptr)();
extern char *getprogramname();
#ifndef FUNCNAME_PATTERN
-#if defined(__hp9000s300) || defined(__NetBSD__)
+#if defined(__hp9000s300) || defined(__NetBSD__) || defined(__BORLANDC__)
#define FUNCNAME_PATTERN "_init%.200s"
#else
#define FUNCNAME_PATTERN "init%.200s"