]> git.lyx.org Git - features.git/blobdiff - 3rdparty/boost/boost/config/platform/cygwin.hpp
Update to boost 1.72
[features.git] / 3rdparty / boost / boost / config / platform / cygwin.hpp
index 8ecc4a4af5c43159eb2212b7c4065c362a0023d3..d0052d8b45f6a09934f3a620614eb3d70e658de9 100644 (file)
 #ifdef _STDINT_H
 #define BOOST_HAS_STDINT_H
 #endif
+#if __GNUC__ > 5 && !defined(BOOST_HAS_STDINT_H)
+#   define BOOST_HAS_STDINT_H
+#endif
 
+#include <cygwin/version.h>
+#if (CYGWIN_VERSION_API_MAJOR == 0 && CYGWIN_VERSION_API_MINOR < 231)
 /// Cygwin has no fenv.h
 #define BOOST_NO_FENV_H
+#endif
+
+// 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>