diff options
-rw-r--r-- | src/inspircd.cpp | 7 | ||||
-rw-r--r-- | win/inspircd_win32wrapper.h | 7 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7178b9e32..8a3c5fd7e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -27,13 +27,6 @@ #define RUSAGE_SELF 0 #endif - /* CRT memory debugging */ - #ifdef DEBUG - #define _CRTDBG_MAP_ALLOC - #include <stdlib.h> - #include <crtdbg.h> - #endif - #include <pwd.h> // setuid #include <grp.h> // setgid #endif diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 4bc364881..4c8658703 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -28,6 +28,13 @@ #define ENABLE_CRASHDUMPS 0 /* This defaults to 64, way too small for an ircd! */ +/* CRT memory debugging */ +#ifdef DEBUG +#define _CRTDBG_MAP_ALLOC +#include <stdlib.h> +#include <crtdbg.h> +#endif + #define FD_SETSIZE 24000 /* Make builds smaller, leaner and faster */ |