Support build with MinGW 4.9.1

This commit is contained in:
Dmitry Ivanov 2015-04-26 13:17:43 +03:00 committed by Dmitriy Ivanov
parent d6f9c868ec
commit 9a3f85d44c

View file

@ -102,7 +102,7 @@ void TY_(freeFileSource)( TidyInputSource* inp, Bool closeIt )
#include "message.h" #include "message.h"
#include <errno.h> #include <errno.h>
#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 */ #pragma warning(disable:4115) /* named type definition in parentheses in windows headers */
#endif #endif
#include <windows.h> #include <windows.h>
@ -192,7 +192,7 @@ static int initMappedFileSource( TidyAllocator *allocator, TidyInputSource* inp,
if ( !fin ) if ( !fin )
return -1; 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; LARGE_INTEGER* pli = (LARGE_INTEGER *)&fin->size;
(DWORD)pli->LowPart = GetFileSize( fp, (DWORD *)&pli->HighPart ); (DWORD)pli->LowPart = GetFileSize( fp, (DWORD *)&pli->HighPart );