Merge pull request #764 from cxd4/undeclared-ASSERTE-macro

[Common] Have fallback to including nonstandard <crtdbg.h>.
This commit is contained in:
zilmar 2015-11-18 06:36:32 +11:00
commit 839fda1e0e
2 changed files with 11 additions and 0 deletions

View File

@ -2,6 +2,12 @@
#include <TChar.H>
#if defined(_MSC_VER)
#include <crtdbg.h>
#else
#define _ASSERTE(expr) ((void)0)
#endif
CFile::CFile() :
m_hFile(INVALID_HANDLE_VALUE),
m_bCloseOnDelete(false)

View File

@ -1,4 +1,9 @@
#if defined(_MSC_VER)
#include <crtdbg.h>
#else
#define _ASSERTE(expr) ((void)0)
#endif
#include "stdafx.h"
#ifdef _DEBUG