summaryrefslogtreecommitdiff
path: root/boost/config/platform/cygwin.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/config/platform/cygwin.hpp')
-rw-r--r--boost/config/platform/cygwin.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/boost/config/platform/cygwin.hpp b/boost/config/platform/cygwin.hpp
index 6dd7e57cfd..d0052d8b45 100644
--- a/boost/config/platform/cygwin.hpp
+++ b/boost/config/platform/cygwin.hpp
@@ -42,8 +42,11 @@
# 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