diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-06-17 13:36:57 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-06-17 13:54:02 +0200 |
commit | bd2eb44aa27ee92564325e61b5fae81322b9e7ce (patch) | |
tree | 6f5f4e1ae2a2441f1be635f0b818a57798875568 /apps/mudraw.c | |
parent | d0cb485b522f8776d4c0faee82bb1af8420af6a4 (diff) | |
download | mupdf-bd2eb44aa27ee92564325e61b5fae81322b9e7ce.tar.xz |
Add support to build command line tools on MINGW.
Tested with msysgit 1.8.3 environment.
Diffstat (limited to 'apps/mudraw.c')
-rw-r--r-- | apps/mudraw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/mudraw.c b/apps/mudraw.c index 768298f1..8e550c84 100644 --- a/apps/mudraw.c +++ b/apps/mudraw.c @@ -351,7 +351,11 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum) fprintf(mujstest_file, "TEXT %d\n", mujstest_count); break; case PDF_WIDGET_CONTENT_SPECIAL: +#ifdef __MINGW32__ + fprintf(mujstest_file, "TEXT %I64d\n", 46702919800LL + mujstest_count); +#else fprintf(mujstest_file, "TEXT %lld\n", 46702919800LL + mujstest_count); +#endif break; case PDF_WIDGET_CONTENT_DATE: fprintf(mujstest_file, "TEXT Jun %d 1979\n", 1 + ((13 + mujstest_count) % 30)); @@ -808,15 +812,11 @@ parse_colorspace(const char *name) return -1; } -#ifdef MUPDF_COMBINED_EXE -int draw_main(int argc, char **argv) -#else -#ifdef _WIN32 +#ifdef _MSC_VER static int main_utf8(int argc, char **argv) #else int main(int argc, char **argv) #endif -#endif { char *password = ""; fz_document *doc = NULL; @@ -1082,7 +1082,7 @@ int main(int argc, char **argv) return (errored != 0); } -#ifdef _WIN32 +#ifdef _MSC_VER static char * wchar_to_utf8(wchar_t *s) { |