Explorar o código

From Dušan Jocić: convexDecomp vs2015+ compatibility patch
(Verified with https://github.com/GarageGames/Torque3D/pull/1376 for sub vs2015)

Azaezel %!s(int64=10) %!d(string=hai) anos
pai
achega
a487583946
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      Engine/lib/convexDecomp/NvRemoveTjunctions.cpp

+ 5 - 1
Engine/lib/convexDecomp/NvRemoveTjunctions.cpp

@@ -60,8 +60,12 @@ NvRemoveTjunctions.cpp : A code snippet to remove tjunctions from a triangle mes
 #include <vector>
 #ifdef __APPLE__
    #include <ext/hash_map>
-#else
+#elif LINUX
    #include <hash_map>
+#elif _MSC_VER < 1500
+   #include <hash_map>
+#elif _MSC_VER > 1800
+   #include <unordered_map>
 #endif
 #include "NvUserMemAlloc.h"
 #include "NvHashMap.h"