From db3f7ffe32808fde89ce7696066c0b1276756703 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 19 Aug 2015 12:14:52 +0200 Subject: Revert revert of WinMain utf-8 handling and fix the bugs. Also fix a few ifdefs in time.c so that it builds on MinGW. --- source/fitz/time.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/fitz/time.c') diff --git a/source/fitz/time.c b/source/fitz/time.c index 6b1d6255..1f45e665 100644 --- a/source/fitz/time.c +++ b/source/fitz/time.c @@ -1,10 +1,11 @@ -#ifdef _MSC_VER +#ifdef _WIN32 #include "mupdf/fitz.h" #include #include +#ifdef _MSC_VER #ifndef _WINRT #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 @@ -33,6 +34,7 @@ int gettimeofday(struct timeval *tv, struct timezone *tz) } #endif /* !_WINRT */ +#endif /* _MSC_VER */ char * fz_utf8_from_wchar(const wchar_t *s) @@ -138,4 +140,4 @@ fz_free_argv(int argc, char **argv) free(argv); } -#endif /* _MSC_VER */ +#endif /* _WIN32 */ -- cgit v1.2.3