diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-07 11:17:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-07 11:17:52 +0200 |
commit | 783ac77767350d0e6a37cc812e727de2c57f789e (patch) | |
tree | 423cd1673ba84a0c24a9506774683225dcb93262 | |
parent | 39ad033dbe91be56af51077b07d010590e0e4859 (diff) |
ifdef-out invalid static_assert on Cygwin/MSYS
-rw-r--r-- | libbutl/process.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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:: |