Adding #ifdef to guard windows-specific debugging option.

This commit is contained in:
Alan Mishchenko 2012-10-20 22:58:42 -07:00
parent 7235d74010
commit 84b54597b4
1 changed files with 5 additions and 3 deletions

View File

@ -52,9 +52,11 @@
#endif
// catch memory leaks in Visual Studio
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#ifdef WIN32
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#endif
#if !defined(___unused)