From 09e1fbef70d3ec17fad77b034e631944bc194c05 Mon Sep 17 00:00:00 2001 From: Vaclav Slavik Date: Fri, 12 Jun 2015 19:47:36 +0200 Subject: [PATCH] Fix MinGW and VC8 compilation error 3a8ad952 introduced compilation failures with (some versions of) MinGW and VC8 because their winnls.h apparently doesn't declare SetThreadUILanguage(). Just declare the function ourselves to fix it. --- src/common/intl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 7f2c08e373..5202dabef7 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -50,6 +50,8 @@ #ifdef __WIN32__ #include "wx/msw/private.h" + // Some compilers' winnls.h header doesn't declare this function: + extern "C" WINBASEAPI LANGID WINAPI SetThreadUILanguage(LANGID LangId); #endif #include "wx/file.h"