From: Dimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Date: Fri, 22 Apr 2011 10:43:47 +0000 (+0000)
Subject: Fixed wxUSE_STD_STRING==0 compilation.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa5d9d2006cf19bedac704dce79a0ea40c1e060c

Fixed wxUSE_STD_STRING==0 compilation.

With at least MSVC9 numformatter.cpp wouldn't compile because of unknown identifiers related to locales. Include <locale.h> in case wxUSE_STD_STRING is set to 0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/common/numformatter.cpp b/src/common/numformatter.cpp
index e89a7cd240..7b110abc18 100644
--- a/src/common/numformatter.cpp
+++ b/src/common/numformatter.cpp
@@ -21,6 +21,10 @@
 #include "wx/numformatter.h"
 #include "wx/intl.h"
 
+#if !wxUSE_STD_STRING
+    #include <locale.h> // for setlocale and LC_ALL
+#endif
+
 // ----------------------------------------------------------------------------
 // local helpers
 // ----------------------------------------------------------------------------