Do the winelib and winegcc tools and so on define WIN32?

Dimitrie O. Paun dpaun at rogers.com
Tue Jul 22 23:12:52 CDT 2003


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.

-- 
Dimi.




More information about the wine-devel mailing list