From c78a676e82eeb041e1491d297b140ba574762b22 Mon Sep 17 00:00:00 2001 From: "James E. King III" Date: Thu, 1 Nov 2018 14:27:59 -0400 Subject: [PATCH] Fix BOOST_NO_FENV_H on cygwin --- include/boost/config/platform/cygwin.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/config/platform/cygwin.hpp b/include/boost/config/platform/cygwin.hpp index 6dd7e57c..d0052d8b 100644 --- a/include/boost/config/platform/cygwin.hpp +++ b/include/boost/config/platform/cygwin.hpp @@ -42,8 +42,11 @@ # define BOOST_HAS_STDINT_H #endif +#include +#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 which breaks unless the correct compiler flags are used: #ifndef BOOST_NO_CXX14_HDR_SHARED_MUTEX