summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 07:23:05 (GMT)
committerAnthony Baxter <anthonybaxter@gmail.com>2006-04-11 07:23:05 (GMT)
commit1cf3964fd1002aefb674e1c9320483c2becdb707 (patch)
treed0cf3ae79be76fd38301554234f18fc76f179221 /Include
parent0c469854bcb6f7180d261bc1f6adb67f27656419 (diff)
downloadcpython-1cf3964fd1002aefb674e1c9320483c2becdb707.zip
cpython-1cf3964fd1002aefb674e1c9320483c2becdb707.tar.gz
cpython-1cf3964fd1002aefb674e1c9320483c2becdb707.tar.bz2
C++ already defines a perfectly good 'bool'. Use that.
Diffstat (limited to 'Include')
-rw-r--r--Include/asdl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/asdl.h b/Include/asdl.h
index c1c5603..d709d42 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