More C-mode patches.

[SVN r70996]
This commit is contained in:
John Maddock
2011-04-05 08:24:09 +00:00
parent 56d410f014
commit 86102c32ef
3 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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 :-(
//