Skip to content

Commit 0316911

Browse files
committed
Fixes #277: ("-Wundef warning in boost/interprocess/detail/workaround.hpp ")
1 parent 69e2c44 commit 0316911

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/interprocess/detail/workaround.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
//////////////////////////////////////////////////////
8787
// BOOST_INTERPROCESS_POSIX_ROBUST_MUTEXES
8888
//////////////////////////////////////////////////////
89-
#if (_XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L)
89+
#if ( defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700) ) || ( defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L) )
9090
#define BOOST_INTERPROCESS_POSIX_ROBUST_MUTEXES
9191
#endif
9292

@@ -178,7 +178,7 @@
178178
//////////////////////////////////////////////////////
179179
//posix_fallocate
180180
//////////////////////////////////////////////////////
181-
#if (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L)
181+
#if ( defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600) ) || ( defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L) )
182182
#define BOOST_INTERPROCESS_POSIX_FALLOCATE
183183
#endif
184184

0 commit comments

Comments
 (0)