]> git.saurik.com Git - wxWidgets.git/commitdiff
Always include locale.h to get LC_ALL declaration.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Oct 2011 21:10:40 +0000 (21:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Oct 2011 21:10:40 +0000 (21:10 +0000)
For some reason locale.h was only included in !wxUSE_STD_STRING case but we
actually always need it as we use LC_ALL in this file and at least in Sun CC
build it wasn't included from anywhere else so include it from here to fix the
build.

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

src/common/numformatter.cpp

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