Fix to the #include <stdlib.h> problem for Debug version on Window.

This commit is contained in:
Alan Mishchenko 2015-10-16 19:27:12 -07:00
parent 0145b0ca72
commit aa546b46d9
1 changed files with 8 additions and 8 deletions

View File

@ -53,14 +53,6 @@
#define ABC_DLL ABC_DLLIMPORT
#endif
// catch memory leaks in Visual Studio
#ifdef WIN32
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#endif
#if !defined(___unused)
#if defined(__GNUC__)
#define ___unused __attribute__ ((__unused__))
@ -84,6 +76,14 @@
#include <stdio.h>
#include <string.h>
// catch memory leaks in Visual Studio
#ifdef WIN32
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#endif
////////////////////////////////////////////////////////////////////////
/// NAMESPACES ///
////////////////////////////////////////////////////////////////////////