Browse Source

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 years ago
parent
commit
a76fc0a316
1 changed files with 4 additions and 0 deletions
  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
 {