[evince] [windows] Define WIFEXITED and WEXITSTATUS on Windows



commit f9c2880d31bb2f5d4411849b9207c5d26a5c616a
Author: Hib Eris <hib hiberis nl>
Date:   Tue Jan 5 13:00:46 2010 +0100

    [windows] Define WIFEXITED and WEXITSTATUS on Windows

 backend/dvi/dvi-document.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c
index 863276d..5c4ecea 100644
--- a/backend/dvi/dvi-document.c
+++ b/backend/dvi/dvi-document.c
@@ -32,7 +32,12 @@
 
 #include <glib/gi18n-lib.h>
 #include <ctype.h>
-#include <sys/wait.h>
+#ifdef G_OS_WIN32
+# define WIFEXITED(x) ((x) != 3)
+# define WEXITSTATUS(x) (x)
+#else
+# include <sys/wait.h>
+#endif
 #include <stdlib.h>
 
 GMutex *dvi_context_mutex = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]