]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 19 Jan 2003 23:32:04 +0000 (23:32 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 19 Jan 2003 23:32:04 +0000 (23:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 98bc6dcc078a6eb684184dd3ee991c1707538b81..e2a7299f7aef6ff59178ac3b98a926264272f1eb 100644 (file)
@@ -768,15 +768,18 @@ bool wxLocale::Init(int language, int flags)
     wxMB2WXbuf retloc = wxSetlocale(LC_ALL , wxEmptyString);
 #else
     return FALSE;
+    #define WX_NO_LOCALE_SUPPORT
 #endif
 
-    wxChar *szLocale = retloc ? wxStrdup(retloc) : NULL;
+#ifndef WX_NO_LOCALE_SUPPORT
+     wxChar *szLocale = retloc ? wxStrdup(retloc) : NULL;
     bool ret = Init(name, canonical, retloc,
                     (flags & wxLOCALE_LOAD_DEFAULT) != 0,
                     (flags & wxLOCALE_CONV_ENCODING) != 0);
     if (szLocale)
         free(szLocale);
     return ret;
+#endif
 }