From: Thomas S. <ste...@gm...> - 2009-08-08 22:46:06
|
Hello Tuomo, >> Currently I use: >> >> __MINGW_H >> >> to detect mingw in general. But now I have to differentiate >> the 3.x and 4.x versions. > > http://gcc.gnu.org/onlinedocs/gcc-3.4.6/cpp/Common-Predefined-Macros.html#Common-Predefined-Macros thank you and looks not bad, but these are constants are used to differentiate between gcc 3 and gcc 4 (or other versions), not to sepereate mingw (with gcc 3.c). and mingw with gcc 4.x But I found __MINGW64 and think this is the right constant to differentiate between these two "environments". But I'm not sure if this constant is defined _every_ time, when compiling with gcc 4.x, indenpendent if it is for 32 bit or 64 bit. Does anybody know that? Thomas |