commit | 8188e792d9778026eed09ab664ac4b16c8906034 | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Sun Nov 18 02:36:07 2001 +0000 |
committer | Fred Drake <fdrake@acm.org> | Sun Nov 18 02:36:07 2001 +0000 |
tree | 54c2dbf220566a0c7133c470b7de3e8b6aa67b3c | |
parent | ef6373a4f67d1921443fa8572927ce089e779b96 [diff] [blame] |
assert.h was not always included by Python.h; make sure we import it for older versions. (Thanks to Martijn Faassen.)
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"