From d94a8a28faaac4508b6f4b855eb80f6a1da78ae3 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> Date: Thu, 10 Dec 2020 18:20:54 +0100 Subject: [PATCH] Fix Windows msys2, define WEXITSTATUS (#2685) --- src/V3Os.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/V3Os.cpp b/src/V3Os.cpp index b6d7375e5..2fdceccac 100644 --- a/src/V3Os.cpp +++ b/src/V3Os.cpp @@ -53,8 +53,10 @@ # ifndef WIFEXITED # ifdef __MINGW32__ # define WIFEXITED(w) (((w) & 0xC0000000) == 0) +# define WEXITSTATUS(w) ((w) & ~0xC0000000) # else # define WIFEXITED(w) (((w) & 0377) == 0) +# define WEXITSTATUS(w) (((w) >> 8) & 0377) # endif # endif #else