| 3 | // Test stdbool.h's _Bool | |
| 4 | ||
| 5 | // Prior to C99, stdbool.h uses this typedef, but even in ANSI C mode, _Bool | |
| 6 | // appears to be defined. | |
| 7 | ||
| 8 | // #if __STDC_VERSION__ < 199901L | |
| 9 | // typedef int _Bool; | |
| 10 | The other one: http://clang-developers.42468.n3.nabble.com/How-to-use-Bool-td3925833.html I haven't gone any deeper into these after finding the solution (i.e. omit -ansi) so don't ask me what they imply:) A last remark: on 3.2.1 clang++ produces the same problem while interestingly enough g++ doesn't have any issues with _Bool even when the -ansi option is specified. Regards, r0ller |