Skip to content

Commit ded9a06

Browse files
committed
Fix cygwin _POSIX_C_SOURCE check
1 parent b0090f7 commit ded9a06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/interprocess/detail/workaround.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#else
3535
#include <unistd.h>
3636

37-
#if defined (__CYGWIN__) && (!defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE < 200112L))
37+
#if defined (__CYGWIN__) && (!defined(_POSIX_C_SOURCE) || (_POSIX_C_SOURCE < 200112L))
3838
#error "Error: Compiling on Cygwin without POSIX is not supported. Please define _XOPEN_SOURCE >= 600 or _POSIX_C_SOURCE >= 200112 when compiling"
3939
#endif
4040

0 commit comments

Comments
 (0)