From: Vadim Zeitlin Date: Tue, 13 Nov 2007 02:05:36 +0000 (+0000) Subject: nl_langinfo() check in wxIsLocaleUtf8() was never done because we didn't include... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0503ff1d4fab3ced1e8fb7bd3fd7f7937ce845ab nl_langinfo() check in wxIsLocaleUtf8() was never done because we didn't include langinfo.h -- do it now git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/wxcrt.cpp b/src/common/wxcrt.cpp index daddf430cc..52f825b75a 100644 --- a/src/common/wxcrt.cpp +++ b/src/common/wxcrt.cpp @@ -43,6 +43,10 @@ #include "wx/log.h" #endif +#ifdef HAVE_LANGINFO_H + #include +#endif + #ifdef __WXWINCE__ // there is no errno.h under CE apparently #define wxSET_ERRNO(value) @@ -1152,7 +1156,7 @@ static bool wxIsLocaleUtf8() return true; } } -#endif +#endif // HAVE_LANGINFO_H // check if we're running under the "C" locale: it is 7bit subset // of UTF-8, so it can be safely used with the UTF-8 build: