#include <unistd.h>
#include <string.h>
-#include <sys/wait.h>
#include <stdlib.h>
#include <errno.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
+#ifdef G_OS_WIN32
+# define WIFEXITED(x) ((x) != 3)
+# define WEXITSTATUS(x) (x)
+#else
+# include <sys/wait.h>
+#endif
+
#include "comics-document.h"
#include "ev-document-misc.h"
#include "ev-document-thumbnails.h"
[enable_comics=yes])
if test "x$enable_comics" = "xyes"; then
- if test "x$os_win32" = "xyes"; then
- # The comics backend is disabled on windows because:
- # 1) it uses unix functions from sys/wait.h.
- # 2) it uses external decompression tools not generally available on windows.
- enable_comics=no
- AC_MSG_WARN(The comics backend is not supported on windows.)
- else
- AC_DEFINE([ENABLE_COMICS], [1], [Enable support for comics.])
- fi
-fi
+ AC_DEFINE([ENABLE_COMICS], [1], [Enable support for comics.])
+fi
AM_CONDITIONAL(ENABLE_COMICS, test x$enable_comics = xyes)
dnl ================== End of comic book checks ============================================