]> git.saurik.com Git - wxWidgets.git/commitdiff
use at most -O1 with BCC, it is broken and cannot correctly compile this file with -O2
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Feb 2004 10:40:47 +0000 (10:40 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 1 Feb 2004 10:40:47 +0000 (10:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 67e446e66ed9888f938a8888af3a3784e7833262..74aae5cae4d11d37d6884305bd4f27ef61df1860 100644 (file)
     #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"