From 8bcf4c86f423035eca565571b4cbafd2e60e4c3d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 1 Feb 2004 10:40:47 +0000 Subject: [PATCH] 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 --- src/common/intl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- 2.47.2