From d680d60989a1ef1ea367155a3ba8ce9f738e4283 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 19 Feb 2008 16:50:32 +0000 Subject: [PATCH] add check for minimal BCC version as well as message advising to turn _USE_OLD_RW_STL on for BCC 5.6 [backport from trunk] git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/platform.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/wx/platform.h b/include/wx/platform.h index 2930552e48..6c45b0aa0d 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -256,6 +256,20 @@ #undef UNICODE #endif +/* + Notice that Turbo Explorer (BCC 5.82) is available for free at + http://www.turboexplorer.com/downloads, you can get it if you have trouble + compiling wxWidgets with your current Borland compiler. +*/ +#if defined(__BORLANDC__) && (__BORLANDC__ < 0x540) +# error "wxWidgets requires a newer version of Borland, we recommend upgrading to 5.82 (Turbo Explorer). You may at your own risk remove this line and try building but be prepared to get build errors." +#endif /* __BORLANDC__ */ + +#if defined(__BORLANDC__) && (__BORLANDC__ < 0x582) && (__BORLANDC__ > 0x559) +# ifndef _USE_OLD_RW_STL +# error "wxWidgets is incompatible with default Borland C++ 5.6 STL library, please add -D_USE_OLD_RW_STL to your bcc32.cfg to use RogueWave STL implementation." +# endif +#endif /* __BORLANDC__ */ /* This macro can be used to test the Open Watcom version.