]> granicus.if.org Git - python/commitdiff
Define DL_IMPORT if necessary.
authorGuido van Rossum <guido@python.org>
Wed, 22 May 1996 17:28:54 +0000 (17:28 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 22 May 1996 17:28:54 +0000 (17:28 +0000)
Include pydebug.h instead of declaring Py_FatalError.

Include/pgenheaders.h

index 8c6764b37f5e00df8109116b79496aa872a946fb..aece3116bb80924f11643d6af23853594e33899f 100644 (file)
@@ -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 <stdio.h>
 #include <string.h>
 
@@ -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
 }