]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxUSE_STD_STRING==0 compilation.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 22 Apr 2011 10:43:47 +0000 (10:43 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Fri, 22 Apr 2011 10:43:47 +0000 (10:43 +0000)
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

src/common/numformatter.cpp

index e89a7cd240b2d37da981fcbc286b84c26b5847ec..7b110abc18f840943e729600efb2426a33331b2b 100644 (file)
 #include "wx/numformatter.h"
 #include "wx/intl.h"
 
+#if !wxUSE_STD_STRING
+    #include <locale.h> // for setlocale and LC_ALL
+#endif
+
 // ----------------------------------------------------------------------------
 // local helpers
 // ----------------------------------------------------------------------------