From 03169113da3494b7669c90063dc2dd66e6b54e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Mon, 5 Jan 2026 02:09:58 +0100 Subject: [PATCH] Fixes #277: ("-Wundef warning in boost/interprocess/detail/workaround.hpp ") --- include/boost/interprocess/detail/workaround.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/interprocess/detail/workaround.hpp b/include/boost/interprocess/detail/workaround.hpp index 1877660..fc12e2c 100644 --- a/include/boost/interprocess/detail/workaround.hpp +++ b/include/boost/interprocess/detail/workaround.hpp @@ -86,7 +86,7 @@ ////////////////////////////////////////////////////// // BOOST_INTERPROCESS_POSIX_ROBUST_MUTEXES ////////////////////////////////////////////////////// - #if (_XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L) + #if ( defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700) ) || ( defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L) ) #define BOOST_INTERPROCESS_POSIX_ROBUST_MUTEXES #endif @@ -178,7 +178,7 @@ ////////////////////////////////////////////////////// //posix_fallocate ////////////////////////////////////////////////////// - #if (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L) + #if ( defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) ) || ( defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) ) #define BOOST_INTERPROCESS_POSIX_FALLOCATE #endif