X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1481b2adb28c1a4e1c5989e4ca807f67dd49b009..6afa47d63d56094958ed4d2528bf45ad67340954:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 57d31cf4bb..820a7d6bad 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -22,6 +22,12 @@ #pragma implementation "intl.h" #endif +#if defined(__BORLAND__) && !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 +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -2422,15 +2428,16 @@ const wxChar *wxLocale::GetString(const wxChar *szOrigString, if ( szDomain != NULL ) { wxLogTrace(_T("i18n"), - _T("string '%s'[%d] not found in domain '%s' for locale '%s'."), - szOrigString, n, szDomain, m_strLocale.c_str()); + _T("string '%s'[%lu] not found in domain '%s' for locale '%s'."), + szOrigString, (unsigned long)n, + szDomain, m_strLocale.c_str()); } else { wxLogTrace(_T("i18n"), - _T("string '%s'[%d] not found in locale '%s'."), - szOrigString, n, m_strLocale.c_str()); + _T("string '%s'[%lu] not found in locale '%s'."), + szOrigString, (unsigned long)n, m_strLocale.c_str()); } } #endif // __WXDEBUG__