]> granicus.if.org Git - python/commitdiff
workaround for Mac MSL header definitions of TRUE and FALSE (Jack)
authorGuido van Rossum <guido@python.org>
Tue, 20 May 1997 15:58:36 +0000 (15:58 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 May 1997 15:58:36 +0000 (15:58 +0000)
Modules/rotormodule.c

index 65c175871547b81cfb2968605a3c8885b4495d8e..5c7d5824cebc8a91ccd48fa140ba3da8a6c18b04 100644 (file)
@@ -58,8 +58,12 @@ NOTE: you MUST use the SAME key in rotor.newrotor()
 #include "Python.h"
 #include "mymath.h"
 
+#ifndef TRUE
 #define TRUE   1
+#endif
+#ifndef FALSE
 #define FALSE  0
+#endif
 
 typedef struct {
        PyObject_HEAD