diff --git a/include/boost/config/compiler/borland.hpp b/include/boost/config/compiler/borland.hpp index 21f1d9ec..1ff0e87f 100644 --- a/include/boost/config/compiler/borland.hpp +++ b/include/boost/config/compiler/borland.hpp @@ -59,6 +59,10 @@ #ifdef __cplusplus #include #include +#else +#include +#include +#endif // __cplusplus #ifndef WCHAR_MAX # define WCHAR_MAX 0xffff #endif @@ -66,12 +70,11 @@ # define WCHAR_MIN 0 #endif #endif -#endif // __cplusplus // Borland C++ Builder 6 and below: -#if (__BORLANDC__ <= 0x564) && defined(__cplusplus) +#if (__BORLANDC__ <= 0x564) -# ifdef NDEBUG +# if defined(NDEBUG) && defined(__cplusplus) // fix broken so that Boost.test works: # include # undef strcmp diff --git a/include/boost/config/platform/symbian.hpp b/include/boost/config/platform/symbian.hpp index f869eec3..e02a7782 100644 --- a/include/boost/config/platform/symbian.hpp +++ b/include/boost/config/platform/symbian.hpp @@ -14,12 +14,15 @@ #define BOOST_SYMBIAN 1 -#if defined(__S60_3X__) && defined(__cplusplus) +#if defined(__S60_3X__) // Open C / C++ plugin was introdused in this SDK, earlier versions don't have CRT / STL # define BOOST_S60_3rd_EDITION_FP2_OR_LATER_SDK // make sure we have __GLIBC_PREREQ if available at all -# include -// boilerplate code: +#ifdef __cplusplus +#include +#else +#include +#endif// boilerplate code: # define BOOST_HAS_UNISTD_H # include // S60 SDK defines _POSIX_VERSION as POSIX.1 diff --git a/include/boost/config/warning_disable.hpp b/include/boost/config/warning_disable.hpp index 26ff1323..fea8e829 100644 --- a/include/boost/config/warning_disable.hpp +++ b/include/boost/config/warning_disable.hpp @@ -23,7 +23,7 @@ // Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS: // not even std library ones! Doing so may turn the warning // off too late to be of any use. For example the VC++ C4996 -// warning can be omitted from if that header is included +// warning can be emitted from if that header is included // before or by this one :-( //