From dfdffd0cb3cc27569e101e0abd1aff9772884115 Mon Sep 17 00:00:00 2001 From: Andrew Dunn Date: Fri, 7 Aug 2015 17:06:33 +1000 Subject: [PATCH] Reordered Windows Includes Moved the include above the "streamio.h" include to fix compilation with the latest Windows SDK. now has the following struct. In particular the `CR` member of this struct conflicts with a define in streamio.h. typedef struct _IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY { DWORD BeginAddress; union { DWORD UnwindData; struct { DWORD Flag : 2; DWORD FunctionLength : 11; DWORD RegF : 3; DWORD RegI : 4; DWORD H : 1; DWORD CR : 2; // This line causes a compile error because CR is redefined in streamio.h DWORD FrameSize : 9; } DUMMYSTRUCTNAME; } DUMMYUNIONNAME; } IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, * PIMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; --- src/mappedio.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mappedio.c b/src/mappedio.c index 5efed4c..61cf748 100644 --- a/src/mappedio.c +++ b/src/mappedio.c @@ -97,15 +97,15 @@ void TY_(freeFileSource)( TidyInputSource* inp, Bool closeIt ) #if defined(_WIN32) -#include "streamio.h" -#include "tidy-int.h" -#include "message.h" - -#include #if defined(_MSC_VER) && (_MSC_VER < 1300) /* less than msvc++ 7.0 */ #pragma warning(disable:4115) /* named type definition in parentheses in windows headers */ #endif #include +#include + +#include "streamio.h" +#include "tidy-int.h" +#include "message.h" typedef struct _fp_input_mapped_source {