diff options
-rw-r--r-- | Parser/intrcheck.c | 6 | ||||
-rw-r--r-- | Python/thread.c | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 1320bd8..b1cfb7c 100644 --- a/Parser/intrcheck.c +++ b/Parser/intrcheck.c @@ -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" diff --git a/Python/thread.c b/Python/thread.c index ff5aefe..2c20690 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -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 |