Jean-Marc Lasgouttes wrote: > Angus> I don't think there's any need to drop support for old cygwin, > Angus> so I propose to add the _WIN32 bit in addition to the original > Angus> call. Ok? > > It would be nice to know what _WIN32 really is. All windows compilers? > MinGW?
The MINGW-specific macro is __MINGW32__ > MSVC? > > For example, boost has: > > #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) > // win32: > # define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp" Indeed, and in the 1.32 version that we use in the 1.4.x tree, this file has #define BOOST_WINDOWS 1 to address exactly this PITA. Having said that, a quick google turns up this: http://www.opengl.org/resources/tutorials/sig99/advanced99/notes/footnode.html .. portability:10 According to Microsoft's documentation, the pre-defined _WIN32 macro is ``Defined for applications for Win32. Always defined.'' This macro is therefore the most automatic way to conditionally compile code just for Win32 programs. -- Angus