summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2015-06-26 15:59:17 +0100
committerRobin Watts <robin.watts@artifex.com>2015-06-26 19:06:22 +0100
commit2b08c7f7ed2d4bc3874e5d2734c7d4a0ca3ad966 (patch)
tree09f71d07e0c16cd4a64048387ae9c718d57bebd3 /include
parent7b5720137cef833476d4015cce6402e3c272ccad (diff)
downloadmupdf-2b08c7f7ed2d4bc3874e5d2734c7d4a0ca3ad966.tar.xz
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.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/getopt.h9
1 files changed, 9 insertions, 0 deletions
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