diff --git a/Include/pgenheaders.h b/Include/pgenheaders.h index 8c6764b37f5..aece3116bb8 100644 --- a/Include/pgenheaders.h +++ b/Include/pgenheaders.h @@ -34,6 +34,11 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "config.h" #endif +/* config.h may or may not define DL_IMPORT */ +#ifndef DL_IMPORT /* declarations for DLL import/export */ +#define DL_IMPORT(RTYPE) RTYPE +#endif + #include #include @@ -49,7 +54,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "myproto.h" #include "mymalloc.h" -extern void Py_FatalError Py_PROTO((char *)); +#include "pydebug.h" #ifdef __cplusplus }