mirror of
https://github.com/boostorg/config.git
synced 2025-08-01 05:14:28 +02:00
More C-mode patches.
[SVN r70996]
This commit is contained in:
@@ -59,6 +59,10 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#include <climits>
|
#include <climits>
|
||||||
#include <cwchar>
|
#include <cwchar>
|
||||||
|
#else
|
||||||
|
#include <limits.h>
|
||||||
|
#include <wchar.h>
|
||||||
|
#endif // __cplusplus
|
||||||
#ifndef WCHAR_MAX
|
#ifndef WCHAR_MAX
|
||||||
# define WCHAR_MAX 0xffff
|
# define WCHAR_MAX 0xffff
|
||||||
#endif
|
#endif
|
||||||
@@ -66,12 +70,11 @@
|
|||||||
# define WCHAR_MIN 0
|
# define WCHAR_MIN 0
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif // __cplusplus
|
|
||||||
|
|
||||||
// Borland C++ Builder 6 and below:
|
// 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:
|
// fix broken <cstring> so that Boost.test works:
|
||||||
# include <cstring>
|
# include <cstring>
|
||||||
# undef strcmp
|
# undef strcmp
|
||||||
|
@@ -14,12 +14,15 @@
|
|||||||
#define BOOST_SYMBIAN 1
|
#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
|
// 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
|
# define BOOST_S60_3rd_EDITION_FP2_OR_LATER_SDK
|
||||||
// make sure we have __GLIBC_PREREQ if available at all
|
// make sure we have __GLIBC_PREREQ if available at all
|
||||||
# include <cstdlib>
|
#ifdef __cplusplus
|
||||||
// boilerplate code:
|
#include <cstdlib>
|
||||||
|
#else
|
||||||
|
#include <stdlib.h>
|
||||||
|
#endif// boilerplate code:
|
||||||
# define BOOST_HAS_UNISTD_H
|
# define BOOST_HAS_UNISTD_H
|
||||||
# include <boost/config/posix_features.hpp>
|
# include <boost/config/posix_features.hpp>
|
||||||
// S60 SDK defines _POSIX_VERSION as POSIX.1
|
// S60 SDK defines _POSIX_VERSION as POSIX.1
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
// Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS:
|
// Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS:
|
||||||
// not even std library ones! Doing so may turn the warning
|
// not even std library ones! Doing so may turn the warning
|
||||||
// off too late to be of any use. For example the VC++ C4996
|
// 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 :-(
|
// before or by this one :-(
|
||||||
//
|
//
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user