From 2b08c7f7ed2d4bc3874e5d2734c7d4a0ca3ad966 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 26 Jun 2015 15:59:17 +0100 Subject: Bug 696053: Update windows mupdf to respect command line flags. Previously, only the unix executable had been updated to take command line flags; update the windows one in line with it. We have to cope with the argv being in Unicode; add a windows specific version of getoptw for this. Also note that that fprintf's in the windows mupdf exe won't work as GUI apps don't have a console window, and can't write to the parent one. Fixing that is a larger project than I have time for right now. --- include/mupdf/fitz/getopt.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/mupdf/fitz/getopt.h b/include/mupdf/fitz/getopt.h index e70e1cd1..3890c618 100644 --- a/include/mupdf/fitz/getopt.h +++ b/include/mupdf/fitz/getopt.h @@ -8,4 +8,13 @@ extern int fz_getopt(int nargc, char * const *nargv, const char *ostr); extern int fz_optind; extern char *fz_optarg; +/* + Windows unicode versions. +*/ +#if defined(_WIN32) || defined(_WIN64) +extern int fz_getoptw(int nargc, wchar_t * const *nargv, const wchar_t *ostr); +extern int fz_optindw; +extern wchar_t *fz_optargw; +#endif + #endif -- cgit v1.2.3