From af69c1326cd2bcc0c7c142abe0d7a374cf099448 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 25 Sep 2015 16:18:14 +0100 Subject: Bug 696169: Fix MINGW build of MuPDF. Include pdfapp.h after the UNICODE defines to ensure that the correct version of the Windows string functions are used. Thanks to Tamir Evan for this workaround. --- platform/x11/win_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'platform/x11') diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c index 467aa79a..0ab33c39 100644 --- a/platform/x11/win_main.c +++ b/platform/x11/win_main.c @@ -1,5 +1,3 @@ -#include "pdfapp.h" - #ifndef UNICODE #define UNICODE #endif @@ -11,6 +9,9 @@ #include #include +/* Include pdfapp.h *AFTER* the UNICODE defines */ +#include "pdfapp.h" + #ifndef WM_MOUSEWHEEL #define WM_MOUSEWHEEL 0x020A #endif -- cgit v1.2.3