Added changes required for the TR1 library submission:

A couple of new macros, and change <utility> to <iosfwd>


[SVN r31317]
This commit is contained in:
John Maddock
2005-10-14 14:16:26 +00:00
parent fc5024fd78
commit 58d699efb3
11 changed files with 26 additions and 9 deletions

View File

@@ -12,6 +12,8 @@
#define BOOST_NO_CWCHAR #define BOOST_NO_CWCHAR
#define BOOST_NO_SWPRINTF #define BOOST_NO_SWPRINTF
#define BOOST_HAS_DIRENT_H #define BOOST_HAS_DIRENT_H
#define BOOST_HAS_LOG1P
#define BOOST_HAS_EXPM1
// //
// Threading API: // Threading API:

View File

@@ -74,14 +74,22 @@
// BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE: // BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE:
// These are predicated on _XOPEN_VERSION, and appears to be first released // These are predicated on _XOPEN_VERSION, and appears to be first released
// in issue 4, version 2 (_XOPEN_VERSION > 500). // in issue 4, version 2 (_XOPEN_VERSION > 500).
// Likewise for the functions log1p and expm1.
# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500) # if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500)
# define BOOST_HAS_GETTIMEOFDAY # define BOOST_HAS_GETTIMEOFDAY
# if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE+0 >= 500) # if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE+0 >= 500)
# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE # define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
# endif # endif
# ifndef BOOST_HAS_LOG1P
# define BOOST_HAS_LOG1P
# endif
# ifndef BOOST_HAS_EXPM1
# define BOOST_HAS_EXPM1
# endif
# endif # endif
# endif # endif

View File

@@ -12,12 +12,12 @@
// locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed: // locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
// we need to include a std lib header here in order to detect which // we need to include a std lib header here in order to detect which
// library is in use, use <utility> as it's about the smallest // library is in use, use <iosfwd> as it's about the smallest
// of the std lib headers - do not rely on this header being included - // of the std lib headers - do not rely on this header being included -
// users can short-circuit this header if they know whose std lib // users can short-circuit this header if they know whose std lib
// they are using. // they are using.
#include <utility> #include <iosfwd>
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
// STLPort library; this _must_ come first, otherwise since // STLPort library; this _must_ come first, otherwise since

View File

@@ -12,7 +12,7 @@
// Dinkumware standard library config: // Dinkumware standard library config:
#if !defined(_YVALS) && !defined(_CPPLIB_VER) #if !defined(_YVALS) && !defined(_CPPLIB_VER)
#include <utility> #include <iosfwd>
#if !defined(_YVALS) && !defined(_CPPLIB_VER) #if !defined(_YVALS) && !defined(_CPPLIB_VER)
#error This is not the Dinkumware lib! #error This is not the Dinkumware lib!
#endif #endif

View File

@@ -10,7 +10,7 @@
// Comeau STL: // Comeau STL:
#if !defined(__LIBCOMO__) #if !defined(__LIBCOMO__)
# include <utility> # include <iosfwd>
# if !defined(__LIBCOMO__) # if !defined(__LIBCOMO__)
# error "This is not the Comeau STL!" # error "This is not the Comeau STL!"
# endif # endif

View File

@@ -8,7 +8,7 @@
// Modena C++ standard library (comes with KAI C++) // Modena C++ standard library (comes with KAI C++)
#if !defined(MSIPL_COMPILE_H) #if !defined(MSIPL_COMPILE_H)
# include <utility> # include <iosfwd>
# if !defined(__MSIPL_COMPILE_H) # if !defined(__MSIPL_COMPILE_H)
# error "This is not the Modena C++ library!" # error "This is not the Modena C++ library!"
# endif # endif

View File

@@ -9,7 +9,7 @@
// Metrowerks standard library: // Metrowerks standard library:
#ifndef __MSL_CPP__ #ifndef __MSL_CPP__
# include <utility> # include <iosfwd>
# ifndef __MSL_CPP__ # ifndef __MSL_CPP__
# error This is not the MSL standard library! # error This is not the MSL standard library!
# endif # endif

View File

@@ -10,7 +10,7 @@
// Rogue Wave std lib: // Rogue Wave std lib:
#if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) #if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
# include <utility> # include <iosfwd>
# if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) # if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER)
# error This is not the Rogue Wave standard library # error This is not the Rogue Wave standard library
# endif # endif

View File

@@ -10,7 +10,7 @@
// generic SGI STL: // generic SGI STL:
#if !defined(__STL_CONFIG_H) #if !defined(__STL_CONFIG_H)
# include <utility> # include <iosfwd>
# if !defined(__STL_CONFIG_H) # if !defined(__STL_CONFIG_H)
# error "This is not the SGI STL!" # error "This is not the SGI STL!"
# endif # endif

View File

@@ -10,7 +10,7 @@
// STLPort standard library config: // STLPort standard library config:
#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) #if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
# include <utility> # include <iosfwd>
# if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) # if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
# error "This is not STLPort!" # error "This is not STLPort!"
# endif # endif

View File

@@ -243,6 +243,12 @@
// //
# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901) # if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901)
# define BOOST_HAS_STDINT_H # define BOOST_HAS_STDINT_H
# ifndef BOOST_HAS_LOG1P
# define BOOST_HAS_LOG1P
# endif
# ifndef BOOST_HAS_EXPM1
# define BOOST_HAS_EXPM1
# endif
# endif # endif
// //
@@ -538,3 +544,4 @@ namespace boost{