aboutsummaryrefslogtreecommitdiffstats
path: root/pc/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'pc/config.h')
-rw-r--r--pc/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pc/config.h b/pc/config.h
index 0ea25224..5791de4e 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -552,5 +552,8 @@
#undef HAVE_SYS_PARAM_H
#endif
+#if defined(_MSC_VER) || defined(__MINGW32__)
+# define WEXITSTATUS(stat_val) ((stat_val) & ~0xC0000000)
+#endif
/* #define NO_LINT 1 */