[Common] Have fallback to including nonstandard <crtdbg.h>.

This commit is contained in:
unknown 2015-11-17 13:31:36 -05:00
parent a0ac5d6d33
commit 48a077c8e8
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