On July 22, 2003 11:23 pm, Jonathan Wilson wrote:
If not, they should (IMHO). Any compiler that provides windows.h & friends and proporting to act like a win32 compiler (i.e. accepting win32 code and so on) should be defining WIN32. Testing #ifdef WIN32 is the easiest way to say "if we are building on windows do x, if not do y"
Yes, you are correct that they should. And winegcc does defines the following: WIN32, _WIN32, __WIN32, __WIN32__, __WINNT, __WINNT__, __WINE__, etc.
Take your pick.