]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Need to add default decl of DL_IMPORT, for mymalloc.h
authorGuido van Rossum <guido@python.org>
Fri, 4 Dec 1998 18:50:20 +0000 (18:50 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 4 Dec 1998 18:50:20 +0000 (18:50 +0000)
Parser/intrcheck.c
Python/thread.c

index 1320bd8f20e73b1406d4ecb45e1524a3ebd41acc..b1cfb7cd92c22a1d5e26f9e31696d52423098157 100644 (file)
@@ -32,6 +32,12 @@ PERFORMANCE OF THIS SOFTWARE.
 /* Check for interrupts */
 
 #include "config.h"
+
+/* config.h may or may not define DL_IMPORT */
+#ifndef DL_IMPORT      /* declarations for DLL import/export */
+#define DL_IMPORT(RTYPE) RTYPE
+#endif
+
 #include "myproto.h"
 #include "mymalloc.h" /* For ANY */
 #include "intrcheck.h"
index ff5aefe68b52bb7c12edfddfe0a8a58e549701e3..2c206908b4db08a7b0f79c78cd53b51ce0bfd16b 100644 (file)
@@ -37,6 +37,11 @@ PERFORMANCE OF THIS SOFTWARE.
 
 #include "config.h"
 
+/* config.h may or may not define DL_IMPORT */
+#ifndef DL_IMPORT      /* declarations for DLL import/export */
+#define DL_IMPORT(RTYPE) RTYPE
+#endif
+
 #include <stdio.h>
 
 #ifdef HAVE_STDLIB_H