summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-22 17:28:54 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-22 17:28:54 (GMT)
commitb221ac4f33cea3eb913144488fd38dfe00e53248 (patch)
treef75d4f38cbee4597dba6a9072cd2e3d39a7352a3 /Include
parentdd197e91bf842a78f03952a2c9c1f210cb8b0fe2 (diff)
downloadcpython-b221ac4f33cea3eb913144488fd38dfe00e53248.zip
cpython-b221ac4f33cea3eb913144488fd38dfe00e53248.tar.gz
cpython-b221ac4f33cea3eb913144488fd38dfe00e53248.tar.bz2
Define DL_IMPORT if necessary.
Include pydebug.h instead of declaring Py_FatalError.
Diffstat (limited to 'Include')
-rw-r--r--Include/pgenheaders.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Include/pgenheaders.h b/Include/pgenheaders.h
index 8c6764b..aece311 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 <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
}