]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/xlocale.cpp
ensure that WIN32 is defined, winsock2.h relies on it being defined and fails in...
[wxWidgets.git] / src / common / xlocale.cpp
index e72fd843a058b91396770b96254a16caf0fc1042..b04288c64869562cb034d51c12ea097fc7842c79 100644 (file)
@@ -71,7 +71,7 @@ wxXLocale& wxXLocale::GetCLocale()
 {
     if ( !gs_cLocale )
     {
-        gs_cLocale = new wxXLocale(wx_static_cast(wxXLocaleCTag *, NULL));
+        gs_cLocale = new wxXLocale(static_cast<wxXLocaleCTag *>(NULL));
     }
 
     return *gs_cLocale;
@@ -88,11 +88,7 @@ wxXLocale::wxXLocale(wxLanguage lang)
     }
     else
     {
-#ifdef __WXMSW__
-        Init(info->Description);
-#else
-        Init(info->CanonicalName);
-#endif
+        Init(info->GetLocaleName().c_str());
     }
 }