From d66cbb5fcdb61fcfa64356627a3dd4e68b100f9a Mon Sep 17 00:00:00 2001 From: Russell Rice Date: Tue, 2 Jan 2007 04:41:29 +0000 Subject: sys/wait.h does not exist on windows (thank mingw for sucking), add WIFEXITED and WEXITSTATUS macros so it can compile under windows. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 813 --- setup/execute.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup/execute.c b/setup/execute.c index 8f60288b..800e33b7 100644 --- a/setup/execute.c +++ b/setup/execute.c @@ -27,7 +27,13 @@ #include #include -#include + +#ifndef WINDOWS + #include +#else + #define WEXITSTATUS(stat_val) ((stat_val) & 255) + #define WIFEXITED(stat_val) (((stat_val) & 0xff00) == 0) +#endif #include "textscreen.h" -- cgit v1.2.3