forked from boostorg/config
Include <utility> for some versions of gcc's library.
Sometimes gcc's <cstddef> doesn't define the C++ macros, so check for it and include <utility> in that case. Also remove a workaround from container_fwd.hpp Fixes #2924. [SVN r52246]
This commit is contained in:
@ -33,7 +33,7 @@
|
|||||||
// Rogue Wave library:
|
// Rogue Wave library:
|
||||||
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
|
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
|
||||||
|
|
||||||
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
|
#elif defined(__GLIBCPP__) || defined(__GLIBCXX__) || defined(_GLIBCXX_CSTDDEF)
|
||||||
// GNU libstdc++ 3
|
// GNU libstdc++ 3
|
||||||
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
|
# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
|
||||||
|
|
||||||
|
@ -9,6 +9,10 @@
|
|||||||
// config for libstdc++ v3
|
// config for libstdc++ v3
|
||||||
// not much to go in here:
|
// not much to go in here:
|
||||||
|
|
||||||
|
#if !defined(__GLIBCXX__) && !defined(__GLIBCPP__)
|
||||||
|
#include <utility>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __GLIBCXX__
|
#ifdef __GLIBCXX__
|
||||||
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__)
|
#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__)
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user