From: Hib Eris Date: Sun, 20 Dec 2009 10:09:54 +0000 (+0100) Subject: [windows] Make comics backend also compile on Windows X-Git-Tag: EVINCE_2_29_5~44 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=e732e45fbf5930d8c3ac2471ff8912f41152ec7a;p=evince.git [windows] Make comics backend also compile on Windows See bgo#605146. --- diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c index c2c625a1..b82569bb 100644 --- a/backend/comics/comics-document.c +++ b/backend/comics/comics-document.c @@ -22,7 +22,6 @@ #include #include -#include #include #include @@ -31,6 +30,13 @@ #include #include +#ifdef G_OS_WIN32 +# define WIFEXITED(x) ((x) != 3) +# define WEXITSTATUS(x) (x) +#else +# include +#endif + #include "comics-document.h" #include "ev-document-misc.h" #include "ev-document-thumbnails.h" diff --git a/configure.ac b/configure.ac index 84432ff1..750f9a5f 100644 --- a/configure.ac +++ b/configure.ac @@ -666,16 +666,8 @@ AC_ARG_ENABLE(comics, [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 ============================================