]> granicus.if.org Git - python/commitdiff
assert.h was not always included by Python.h; make sure we import it for
authorFred Drake <fdrake@acm.org>
Sun, 18 Nov 2001 02:36:07 +0000 (02:36 +0000)
committerFred Drake <fdrake@acm.org>
Sun, 18 Nov 2001 02:36:07 +0000 (02:36 +0000)
older versions.  (Thanks to Martijn Faassen.)

Modules/pyexpat.c

index 9344031a7233aa6df80bf16c8d81df88414d4168..dada234f2c51a705567bc5fc52f2db534b3ae687 100644 (file)
@@ -1,4 +1,7 @@
 #include "Python.h"
+#if PY_VERSION_HEX < 0x020000B1
+#include <assert.h>
+#endif
 #include <ctype.h>
 
 #include "compile.h"