diff options
author | Chris Wilson <chris+github@qwirx.com> | 2016-09-03 00:07:23 +0100 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2016-09-03 00:07:23 +0100 |
commit | c0125ee22e09a31ae291e42faa817835bd903dbc (patch) | |
tree | aca37c831ef9897f1b4898cbf8d2bef36112c5af /lib/common/DebugMemLeakFinder.cpp | |
parent | 0560d351665313fcdd503af213118eec46930cbe (diff) |
Update platform feature detection to work with CMake.
Rewrite some macros in forms that can be parsed by our parser written in CMake
language (fake m4 with regexps).
Fix incorrect conditional includes and incorrect #if/#ifdef assumptions.
Diffstat (limited to 'lib/common/DebugMemLeakFinder.cpp')
-rw-r--r-- | lib/common/DebugMemLeakFinder.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/common/DebugMemLeakFinder.cpp b/lib/common/DebugMemLeakFinder.cpp index 81e999c4..58a82c0e 100644 --- a/lib/common/DebugMemLeakFinder.cpp +++ b/lib/common/DebugMemLeakFinder.cpp @@ -15,15 +15,19 @@ #undef realloc #undef free -#ifdef HAVE_UNISTD_H - #include <unistd.h> -#endif - #include <limits.h> #include <signal.h> #include <stdio.h> #include <string.h> +#ifdef HAVE_PROCESS_H +# include <process.h> +#endif + +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif + #include <cstdlib> // for std::atexit #include <map> #include <set> |