Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70996 - in trunk/boost/config: . compiler platform
From: john_at_[hidden]
Date: 2011-04-05 04:24:12


Author: johnmaddock
Date: 2011-04-05 04:24:09 EDT (Tue, 05 Apr 2011)
New Revision: 70996
URL: http://svn.boost.org/trac/boost/changeset/70996

Log:
More C-mode patches.
Text files modified:
   trunk/boost/config/compiler/borland.hpp | 9 ++++++---
   trunk/boost/config/platform/symbian.hpp | 9 ++++++---
   trunk/boost/config/warning_disable.hpp | 2 +-
   3 files changed, 13 insertions(+), 7 deletions(-)

Modified: trunk/boost/config/compiler/borland.hpp
==============================================================================
--- trunk/boost/config/compiler/borland.hpp (original)
+++ trunk/boost/config/compiler/borland.hpp 2011-04-05 04:24:09 EDT (Tue, 05 Apr 2011)
@@ -59,6 +59,10 @@
 #ifdef __cplusplus
 #include <climits>
 #include <cwchar>
+#else
+#include <limits.h>
+#include <wchar.h>
+#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 <cstring> so that Boost.test works:
 # include <cstring>
 # undef strcmp

Modified: trunk/boost/config/platform/symbian.hpp
==============================================================================
--- trunk/boost/config/platform/symbian.hpp (original)
+++ trunk/boost/config/platform/symbian.hpp 2011-04-05 04:24:09 EDT (Tue, 05 Apr 2011)
@@ -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 <cstdlib>
-// boilerplate code:
+#ifdef __cplusplus
+#include <cstdlib>
+#else
+#include <stdlib.h>
+#endif// boilerplate code:
 # define BOOST_HAS_UNISTD_H
 # include <boost/config/posix_features.hpp>
 // S60 SDK defines _POSIX_VERSION as POSIX.1

Modified: trunk/boost/config/warning_disable.hpp
==============================================================================
--- trunk/boost/config/warning_disable.hpp (original)
+++ trunk/boost/config/warning_disable.hpp 2011-04-05 04:24:09 EDT (Tue, 05 Apr 2011)
@@ -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 <iosfwd> if that header is included
+// warning can be emitted from <iosfwd> if that header is included
 // before or by this one :-(
 //
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk