From afb5be10d9eb98b5cda28641c45cd319c571230d Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Mon, 28 Jan 2013 15:36:55 -0600 Subject: [PATCH] OSX likes to put unordered_map in the weirdest of places... --- Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.h b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.h index acde00db1e..ba72c24b4f 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.h +++ b/Source/Plugins/Plugin_VideoOGL/Src/ProgramShaderCache.h @@ -28,8 +28,13 @@ #include "LinearDiskCache.h" #include "ConfigManager.h" +#ifdef __APPLE__ +#include +using namespace std::tr1; +#else #include - +using namespace std; +#endif namespace OGL { @@ -153,7 +158,7 @@ private: } }; - typedef std::unordered_map PCache; + typedef unordered_map PCache; static PCache pshaders; static GLuint CurrentProgram;