summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-10-16 19:27:12 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-10-16 19:27:12 -0700
commitaa546b46d9051470e06457e820b0aa6f668c5bef (patch)
tree63e9a3e0313195eb8d1a59b88d66a55f3ef70f9b /src/misc
parent0145b0ca724ba866480a3edcc1292cdf04117d6f (diff)
downloadabc-aa546b46d9051470e06457e820b0aa6f668c5bef.tar.gz
abc-aa546b46d9051470e06457e820b0aa6f668c5bef.tar.bz2
abc-aa546b46d9051470e06457e820b0aa6f668c5bef.zip
Fix to the #include <stdlib.h> problem for Debug version on Window.
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/util/abc_global.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/misc/util/abc_global.h b/src/misc/util/abc_global.h
index e3b01c2c..56817092 100644
--- a/src/misc/util/abc_global.h
+++ b/src/misc/util/abc_global.h
@@ -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 ///
////////////////////////////////////////////////////////////////////////