From 8c69654f6cde79e35dc45aeb325e2874e59ece64 Mon Sep 17 00:00:00 2001 From: Pavel P Date: Tue, 22 Apr 2025 02:38:35 +0200 Subject: [PATCH] Fix BOOST_HAS_NL_TYPES_H on cygwin Starting from CYGWIN_VERSION_API_MINOR=325 `catclose`, `catgets`, `catopen` are exported (see `` line 455) --- include/boost/config/platform/cygwin.hpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/include/boost/config/platform/cygwin.hpp b/include/boost/config/platform/cygwin.hpp index d0052d8b4..650bc7dfe 100644 --- a/include/boost/config/platform/cygwin.hpp +++ b/include/boost/config/platform/cygwin.hpp @@ -59,13 +59,9 @@ // boilerplate code: #include -// -// Cygwin lies about XSI conformance, there is no nl_types.h: -// +#if (CYGWIN_VERSION_API_MAJOR == 0 && CYGWIN_VERSION_API_MINOR < 325) +// Prior to CYGWIN_VERSION_API_MINOR=325 Cygwin lies about XSI conformance, there is no nl_types.h: #ifdef BOOST_HAS_NL_TYPES_H # undef BOOST_HAS_NL_TYPES_H #endif - - - - +#endif