From 783ac77767350d0e6a37cc812e727de2c57f789e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Aug 2017 11:17:52 +0200 Subject: ifdef-out invalid static_assert on Cygwin/MSYS --- libbutl/process.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbutl/process.cxx') diff --git a/libbutl/process.cxx b/libbutl/process.cxx index 72f18ee..c84cb2a 100644 --- a/libbutl/process.cxx +++ b/libbutl/process.cxx @@ -513,10 +513,15 @@ namespace butl // static const process_exit::status_type status_code (0xFF00); + // On Cygwin/MSYS WIFEXITED() is not constexpr. So we will just hope + // of the best. + // +#if !defined(__MSYS__) && !defined(__CYGWIN__) static_assert (WIFEXITED (status_code) && WEXITSTATUS (status_code) == 0xFF && !WIFSIGNALED (status_code), "unexpected process exit status bits layout"); +#endif } bool process_exit:: -- cgit v1.1