diff options
| author | degasus <wickmarkus@web.de> | 2013-04-08 15:57:51 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-04-08 15:57:51 +0200 |
| commit | 702198f39b4eb71a068c20c9969bd86856fa85ae (patch) | |
| tree | bdee823a26505a752dc9c512cfb9bcfee0cbe90f /Source/Core/VideoCommon/Src/VertexLoaderManager.cpp | |
| parent | ca8554e7d1d7c77b3c2a9ed8a7fb12de7096c67b (diff) | |
| parent | 4c40e70b8af839f84d7d9b8306116cabf3965cdb (diff) | |
Merge branch 'master' into primitive_restart
Conflicts:
Source/Core/VideoCommon/Src/VideoConfig.h
Source/Plugins/Plugin_VideoDX9/Src/main.cpp
Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexLoaderManager.cpp | 43 |
1 files changed, 11 insertions, 32 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp b/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp index 153e69a8c3..01db9f647c 100644 --- a/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp @@ -16,17 +16,7 @@ // http://code.google.com/p/dolphin-emu/ #include <algorithm> -#ifdef _MSC_VER -#include <hash_map> -using stdext::hash_map; -#elif defined __APPLE__ -#include <ext/hash_map> -using __gnu_cxx::hash_map; -#else #include <unordered_map> -using std::unordered_map; -#endif -#include <map> #include <vector> #include "VideoCommon.h" @@ -41,32 +31,21 @@ static int s_attr_dirty; // bitfield static VertexLoader *g_VertexLoaders[8]; -#ifdef _MSC_VER -namespace stdext { - inline size_t hash_value(const VertexLoaderUID& uid) { - return uid.GetHash(); - } -} -#else -#ifdef __APPLE__ -namespace __gnu_cxx -#else namespace std -#endif { - template<> struct hash<VertexLoaderUID> { - size_t operator()(const VertexLoaderUID& uid) const { - return uid.GetHash(); - } - }; + +template <> +struct hash<VertexLoaderUID> +{ + size_t operator()(const VertexLoaderUID& uid) const + { + return uid.GetHash(); + } +}; + } -#endif -#if defined _MSC_VER || defined __APPLE__ -typedef hash_map<VertexLoaderUID, VertexLoader*> VertexLoaderMap; -#else -typedef unordered_map<VertexLoaderUID, VertexLoader*> VertexLoaderMap; -#endif +typedef std::unordered_map<VertexLoaderUID, VertexLoader*> VertexLoaderMap; namespace VertexLoaderManager { |
