]> git.saurik.com Git - wxWidgets.git/commitdiff
nl_langinfo() check in wxIsLocaleUtf8() was never done because we didn't include...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Nov 2007 02:05:36 +0000 (02:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 13 Nov 2007 02:05:36 +0000 (02:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxcrt.cpp

index daddf430ccd38ecc802eee6056c71f083e529349..52f825b75a053b9a98bf1514d7370d70cfd55838 100644 (file)
     #include "wx/log.h"
 #endif
 
+#ifdef HAVE_LANGINFO_H
+    #include <langinfo.h>
+#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: