1
0
forked from boostorg/mp11

Try to work around ::gets errors on clang 3.x/c++14/libstdc++ 4.8

This commit is contained in:
Peter Dimov
2018-08-29 22:07:08 +03:00
parent 76817e70d6
commit a376598a04

View File

@@ -49,7 +49,7 @@
#elif defined(__clang__)
// clang++
// Clang
# undef BOOST_MP11_CLANG
# define BOOST_MP11_CLANG (__clang_major__ * 100 + __clang_minor__)
@@ -60,6 +60,15 @@
# 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)
// Intel C++