]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/intl.cpp
SETUPHDIR is Bakefile variable, not MSVC IDE one
[wxWidgets.git] / src / common / intl.cpp
index 4be838e417ce130bf5185be5a133aa03c9260c54..8b7a9c9426e8546aedf6297b548442ab3ba83564 100644 (file)
@@ -18,7 +18,7 @@
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__BORLAND__) && !defined(__WXDEBUG__)
+#if defined(__BORLANDC__) && !defined(__WXDEBUG__)
     // There's a bug in Borland's compiler that breaks wxLocale with -O2,
     // so make sure that flag is not used for this file:
     #pragma option -O1
@@ -1719,7 +1719,7 @@ bool wxLocale::Init(int language, int flags)
         {
             retloc = wxSetlocaleTryUTF(LC_ALL, localeAlt);
             if ( !retloc )
-                retloc = wxSetlocaleTryUTF(LC_ALL, locale.Left(2));
+                retloc = wxSetlocaleTryUTF(LC_ALL, localeAlt.Left(2));
         }
     }