OSX likes to put unordered_map in the weirdest of places...

This commit is contained in:
Ryan Houdek 2013-01-28 15:36:55 -06:00
parent fa45403557
commit afb5be10d9
1 changed files with 7 additions and 2 deletions

View File

@ -28,8 +28,13 @@
#include "LinearDiskCache.h"
#include "ConfigManager.h"
#ifdef __APPLE__
#include <tr1/unordered_map>
using namespace std::tr1;
#else
#include <unordered_map>
using namespace std;
#endif
namespace OGL
{
@ -153,7 +158,7 @@ private:
}
};
typedef std::unordered_map<u64, PCacheEntry> PCache;
typedef unordered_map<u64, PCacheEntry> PCache;
static PCache pshaders;
static GLuint CurrentProgram;