浏览代码

Undefine GetObject in TileMapLayer2D.h to prevent it getting confused with Win32 API function define. To help, the header should be included after Windows.h is included. Related to #1512.

Lasse Öörni 9 年之前
父节点
当前提交
a76fc0a316
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Source/Urho3D/Urho2D/TileMapLayer2D.h

+ 4 - 0
Source/Urho3D/Urho2D/TileMapLayer2D.h

@@ -25,6 +25,10 @@
 #include "../Scene/Component.h"
 #include "../Urho2D/TileMapDefs2D.h"
 
+#ifdef GetObject
+#undef GetObject
+#endif
+
 namespace Urho3D
 {