I am using the visual studio 2005 C++ compiler (but are coding using C89 type ANSI C) and am unable to define a "true" and "false" keyword to use as follows:
#define true 1
#define false 0
I have used this exact code successfully using the Green Hills C++ compiler, but visual studio behaves as if "true" and "false" are already keywords. Is this true? Can I override them with my own definition, and if so how?
With using the lines above I get C2143 errors during compilation for lines such as:
someFuntion(someVar,otherVar,true);
I have already made certain the other types match the function definition and if I change the true to a "1" or "0x1" the errors go away.