Fix Windows msys2, define WEXITSTATUS (#2685)

This commit is contained in:
Unai Martinez-Corral
2020-12-10 12:20:54 -05:00
committed by GitHub
parent 9a32158b5e
commit d94a8a28fa
+2
View File
@@ -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