浏览代码

Main.h patch from Magic.Lixin.

Lasse Öörni 13 年之前
父节点
当前提交
0b374285ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/Core/Main.h

+ 1 - 1
Engine/Core/Main.h

@@ -28,6 +28,7 @@
 #ifdef WIN32
 #ifdef WIN32
 #include "MiniDump.h"
 #include "MiniDump.h"
 #include <windows.h>
 #include <windows.h>
+#include <crtdbg.h>
 #endif
 #endif
 
 
 using namespace Urho3D;
 using namespace Urho3D;
@@ -37,7 +38,6 @@ using namespace Urho3D;
 // MSVC debug mode: use memory leak reporting
 // MSVC debug mode: use memory leak reporting
 #if defined(_MSC_VER) && defined(_DEBUG)
 #if defined(_MSC_VER) && defined(_DEBUG)
 #define DEFINE_MAIN(function) \
 #define DEFINE_MAIN(function) \
-
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd) \
 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE prevInstance, PSTR cmdLine, int showCmd) \
 { \
 { \
     _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); \
     _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); \