[NOTEPAD] Move '#include <crtdbg.h>' and add _CRTDBG_MAP_ALLOC (#5176)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Mon, 20 Mar 2023 13:55:12 +0000 (22:55 +0900)
committerGitHub <noreply@github.com>
Mon, 20 Mar 2023 13:55:12 +0000 (22:55 +0900)
CORE-18837

base/applications/notepad/main.c
base/applications/notepad/notepad.h

index 3f30dd2..baea8b4 100644 (file)
 #include <shlobj.h>
 #include <strsafe.h>
 
-#ifdef _DEBUG
-#include <crtdbg.h>
-#endif
-
 NOTEPAD_GLOBALS Globals;
 static ATOM aFINDMSGSTRING;
 
index af329f2..2b9338a 100644 (file)
 #include <shellapi.h>
 #include <commdlg.h>
 #include <tchar.h>
+#include <stdlib.h>
 #include <malloc.h>
+#ifdef _DEBUG
+    #define _CRTDBG_MAP_ALLOC
+    #include <crtdbg.h>
+#endif
 
 #include "dialog.h"
 #include "notepad_res.h"