From: Václav Slavík Date: Sun, 1 Feb 2004 10:40:47 +0000 (+0000) Subject: use at most -O1 with BCC, it is broken and cannot correctly compile this file with -O2 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8bcf4c86f423035eca565571b4cbafd2e60e4c3d use at most -O1 with BCC, it is broken and cannot correctly compile this file with -O2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 67e446e66e..74aae5cae4 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"