]> granicus.if.org Git - python/commitdiff
C++ already defines a perfectly good 'bool'. Use that.
authorAnthony Baxter <anthonybaxter@gmail.com>
Tue, 11 Apr 2006 07:23:05 +0000 (07:23 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Tue, 11 Apr 2006 07:23:05 +0000 (07:23 +0000)
Include/asdl.h

index c1c5603e8baed91e719c6b5c6b13a6e1bfe51c63..d709d42c76d452c8ca53718f1e183353e2937235 100644 (file)
@@ -5,7 +5,9 @@ typedef PyObject * identifier;
 typedef PyObject * string;
 typedef PyObject * object;
 
+#ifndef __cplusplus
 typedef enum {false, true} bool;
+#endif
 
 /* It would be nice if the code generated by asdl_c.py was completely
    independent of Python, but it is a goal the requires too much work