A friend of mine actually encountered #define FALSE 1 in some header file he included from a 3rd party project. It was straight C.
I'm not sure why after finding that he decided to file a bug report rather that not touch any of that code.
I'm not sure why after finding that he decided to file a bug report rather that not touch any of that code.
Glib goes into great lengths to avoid namespace conflicts so it defines the GBoolean type and G_TRUE/G_FALSE. Whether that really is better than #define TRUE/FALSE, I don't know.