]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
Fixed compile problem and warning
[wxWidgets.git] / src / common / appbase.cpp
index 296d1cc6c8251c1d4c7277383cc963e2528ba7aa..53d05a50fd3ff6204aed93c85ba926564458928e 100644 (file)
@@ -46,6 +46,8 @@
   #include  <signal.h>      // for SIGTRAP used by wxTrap()
 #endif  //Win/Unix
 
+#include <locale.h>
+
 #if wxUSE_FONTMAP
     #include "wx/fontmap.h"
 #endif // wxUSE_FONTMAP
@@ -507,10 +509,12 @@ GSocketGUIFunctionsTable* wxConsoleAppTraitsBase::GetSocketGUIFunctionsTable()
 // wxAppTraits
 // ----------------------------------------------------------------------------
 
+#if wxUSE_INTL
 void wxAppTraitsBase::SetLocale()
 {
     setlocale(LC_ALL, "");
 }
+#endif
 
 #ifdef __WXDEBUG__