Quoting Kent Sandvik: > Hi, noticed when I tried to use stdbool.h in one of my projects that > it clashes with the direct/types.h definition of bool true/false. I > think more and more developers will start using stdbool.h (and > stdint.h) as it's now part of the latest gcc 3.3.x and 3.4.x versions > (alas not well supported with Visual Studio compilers). > > Anyway, the stdbool.h included with gcc has a #define > __bool_true_false_are_defined flag. Would it make sense to test for > this also (in addition to __cplusplus) before doing the typedef enum > bool in types.h? Or something else that makes it possible to use > stdbool.h? --Kent
Hmm, that would require that stdbool.h is included before direct/types.h. But it's much better than nothing ;) -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://www.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
