From 9a3f85d44c7828b4cc81366a8a278a09500bfb94 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Sun, 26 Apr 2015 13:17:43 +0300 Subject: [PATCH] Support build with MinGW 4.9.1 --- src/mappedio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mappedio.c b/src/mappedio.c index 6e5ec49..5efed4c 100644 --- a/src/mappedio.c +++ b/src/mappedio.c @@ -102,7 +102,7 @@ void TY_(freeFileSource)( TidyInputSource* inp, Bool closeIt ) #include "message.h" #include -#if _MSC_VER < 1300 /* less than msvc++ 7.0 */ +#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 @@ -192,7 +192,7 @@ static int initMappedFileSource( TidyAllocator *allocator, TidyInputSource* inp, if ( !fin ) return -1; -#if _MSC_VER < 1300 /* less than msvc++ 7.0 */ +#if defined(_MSC_VER) && (_MSC_VER < 1300) /* less than msvc++ 7.0 */ { LARGE_INTEGER* pli = (LARGE_INTEGER *)&fin->size; (DWORD)pli->LowPart = GetFileSize( fp, (DWORD *)&pli->HighPart );