summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-18 02:36:07 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-18 02:36:07 (GMT)
commit8188e792d9778026eed09ab664ac4b16c8906034 (patch)
tree54c2dbf220566a0c7133c470b7de3e8b6aa67b3c /Modules
parentef6373a4f67d1921443fa8572927ce089e779b96 (diff)
downloadcpython-8188e792d9778026eed09ab664ac4b16c8906034.zip
cpython-8188e792d9778026eed09ab664ac4b16c8906034.tar.gz
cpython-8188e792d9778026eed09ab664ac4b16c8906034.tar.bz2
assert.h was not always included by Python.h; make sure we import it for
older versions. (Thanks to Martijn Faassen.)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/pyexpat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 9344031..dada234 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1,4 +1,7 @@
#include "Python.h"
+#if PY_VERSION_HEX < 0x020000B1
+#include <assert.h>
+#endif
#include <ctype.h>
#include "compile.h"