Giel van Schijndel wrote:
>>>> >>> So if that code doesn't compile when using "bool", please fix the above >>> code in types.h instead of reverting back to "BOOL". >>> >>> The only scenario I can think of is that the compiler you use claims to >>> be C99 compatible, but doesn't provide macros: "bool", "true", "false" >>> and "__bool_true_false_are_defined" (which it _should_ provide if it >>> claims C99 compatibility). Although I might look over something. >>> >> Every other place in the code uses BOOL. Only these two lines used >> bool. Lines immediately above and below each of them used BOOL. >> >> C99 also provides <stdbool.h>, which on my system defines 'bool'. >> Have you read the standard? See >> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf p. 253, >> which says that stdbool.h defines the bool type. >> > Actually, yes I have read the C99 standard just to create that piece of > code ^^ in types.h. If you look carefully then you see that all the > #ifndef statements are only executed when I the compiler doesn't claim > to support C99. So that piece of code _simulates_ C99 capability for > non-C99 compilers. > In the context of the platforms WZ currently has builds for, which one uses a non C99 compliant compiler? Or put differently, is this a fix in search of a problem? _______________________________________________ Warzone-dev mailing list Warzone-dev@gna.org https://mail.gna.org/listinfo/warzone-dev