defines bool if it is not defined
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 16 Dec 2005 07:52:20 +0000 (07:52 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 16 Dec 2005 07:52:20 +0000 (07:52 +0000)
src/xlat-i/xi-symbol.C

index 88b1d03ef711aa6cbc93dd7b1931486f161fe4a6..f92fdfd2844d915b95356f375fef3a73bd98bb2b 100644 (file)
@@ -9,6 +9,10 @@
 #include "xi-symbol.h"
 #include <ctype.h> // for tolower()
 
+#if ! CMK_BOOL_DEFINED
+typedef enum {false = 0, true = 1} bool;
+#endif
+
 #if CMK_STL_USE_DOT_H  /* Pre-standard C++ */
 #  include <fstream.h>
 #else /* ISO C++ */