forked from boostorg/mp11
Try to work around ::gets errors on clang 3.x/c++14/libstdc++ 4.8
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
#elif defined(__clang__)
|
#elif defined(__clang__)
|
||||||
|
|
||||||
// clang++
|
// Clang
|
||||||
|
|
||||||
# undef BOOST_MP11_CLANG
|
# undef BOOST_MP11_CLANG
|
||||||
# define BOOST_MP11_CLANG (__clang_major__ * 100 + __clang_minor__)
|
# define BOOST_MP11_CLANG (__clang_major__ * 100 + __clang_minor__)
|
||||||
@@ -60,6 +60,15 @@
|
|||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
#if BOOST_MP11_CLANG < 400 && __cplusplus >= 201402L \
|
||||||
|
&& defined( __GLIBCXX__ ) && !__has_include(<shared_mutex>)
|
||||||
|
|
||||||
|
// Clang pre-4 in C++14 mode, libstdc++ pre-4.9, ::gets is not defined,
|
||||||
|
// but Clang tries to import it into std
|
||||||
|
|
||||||
|
extern "C" char *gets (char *__s);
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(__INTEL_COMPILER)
|
#elif defined(__INTEL_COMPILER)
|
||||||
|
|
||||||
// Intel C++
|
// Intel C++
|
||||||
|
Reference in New Issue
Block a user