From: Guido van Rossum Date: Fri, 4 Dec 1998 18:50:20 +0000 (+0000) Subject: Need to add default decl of DL_IMPORT, for mymalloc.h X-Git-Tag: v1.5.2b1~124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f261526423db10822012be10bf9fdcaa3f135145;p=thirdparty%2FPython%2Fcpython.git Need to add default decl of DL_IMPORT, for mymalloc.h --- diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c index 1320bd8f20e7..b1cfb7cd92c2 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 ff5aefe68b52..2c206908b4db 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 #ifdef HAVE_STDLIB_H