]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
for BorlandC
authorGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 10:15:36 +0000 (10:15 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 27 Feb 1995 10:15:36 +0000 (10:15 +0000)
Python/importdl.c

index 6f2016d60f77b2effb048d4bc0c43e8ea9aff3fe..0d13a14e9d78d15fb4e5e71e1d584c4ffe2f857d 100644 (file)
@@ -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"