mirror of https://github.com/YosysHQ/abc.git
Fix to the #include <stdlib.h> problem for Debug version on Window.
This commit is contained in:
parent
0145b0ca72
commit
aa546b46d9
|
|
@ -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 ///
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue