diff --git a/rtgui/multilangmgr.cc b/rtgui/multilangmgr.cc
index de0f3f2ee..476dd4ba3 100755
--- a/rtgui/multilangmgr.cc
+++ b/rtgui/multilangmgr.cc
@@ -16,19 +16,25 @@
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see .
*/
+#ifdef WIN32
+// Desired auto detect function is Vista+
+#if __GNUC__ == 4 && __GNUC_MINOR__ >= 8
+#define WINVER 0x0600 // switching to WINVER for gcc 4.8.1 support on Winx64
+#else
+#define _WIN32_WINNT 0x0600
+#endif
+#include
+#include
+#if __GNUC__ == 4 && __GNUC_MINOR__ >= 8
+#undef WINVER
+#else
+#undef _WIN32_WINNT
+#endif
+#endif
#include
#include "multilangmgr.h"
#include
#include "../rtengine/safegtk.h"
-#ifdef WIN32
-// Desired auto detect function is Vista+
-//#define _WIN32_WINNT 0x0600 // switching to WINVER for gcc 4.8.1 support on Winx64
-#define WINVER 0x0600
-#include
-#include
-#undef WINVER
-//#undef _WIN32_WINNT
-#endif
MultiLangMgr langMgr;