From: Anthony Baxter Date: Tue, 11 Apr 2006 07:23:05 +0000 (+0000) Subject: C++ already defines a perfectly good 'bool'. Use that. X-Git-Tag: v2.5a2~341 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1cf3964fd1002aefb674e1c9320483c2becdb707;p=python C++ already defines a perfectly good 'bool'. Use that. --- diff --git a/Include/asdl.h b/Include/asdl.h index c1c5603e8b..d709d42c76 100644 --- a/Include/asdl.h +++ b/Include/asdl.h @@ -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