diff options
Diffstat (limited to 'boost/config/platform/cygwin.hpp')
-rw-r--r-- | boost/config/platform/cygwin.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/boost/config/platform/cygwin.hpp b/boost/config/platform/cygwin.hpp index 8ecc4a4af5..6dd7e57cfd 100644 --- a/boost/config/platform/cygwin.hpp +++ b/boost/config/platform/cygwin.hpp @@ -38,10 +38,21 @@ #ifdef _STDINT_H #define BOOST_HAS_STDINT_H #endif +#if __GNUC__ > 5 && !defined(BOOST_HAS_STDINT_H) +# define BOOST_HAS_STDINT_H +#endif /// Cygwin has no fenv.h #define BOOST_NO_FENV_H +// Cygwin has it's own <pthread.h> which breaks <shared_mutex> unless the correct compiler flags are used: +#ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX +#include <pthread.h> +#if !(__XSI_VISIBLE >= 500 || __POSIX_VISIBLE >= 200112) +# define BOOST_NO_CXX14_HDR_SHARED_MUTEX +#endif +#endif + // boilerplate code: #include <boost/config/detail/posix_features.hpp> |