From 48a077c8e8f678cf72a883663280b406b9df7831 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Nov 2015 13:31:36 -0500 Subject: [PATCH] [Common] Have fallback to including nonstandard . --- Source/Common/File Class.cpp | 6 ++++++ Source/Common/MemTest.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/Source/Common/File Class.cpp b/Source/Common/File Class.cpp index cc73de345..2dc7a73b3 100644 --- a/Source/Common/File Class.cpp +++ b/Source/Common/File Class.cpp @@ -2,6 +2,12 @@ #include +#if defined(_MSC_VER) +#include +#else +#define _ASSERTE(expr) ((void)0) +#endif + CFile::CFile() : m_hFile(INVALID_HANDLE_VALUE), m_bCloseOnDelete(false) diff --git a/Source/Common/MemTest.cpp b/Source/Common/MemTest.cpp index 8b70840bf..99f5d08b5 100644 --- a/Source/Common/MemTest.cpp +++ b/Source/Common/MemTest.cpp @@ -1,4 +1,9 @@ +#if defined(_MSC_VER) #include +#else +#define _ASSERTE(expr) ((void)0) +#endif + #include "stdafx.h" #ifdef _DEBUG