diff --git a/Engine/source/console/simDictionary.h b/Engine/source/console/simDictionary.h index 5dddf4bbe..120791b06 100644 --- a/Engine/source/console/simDictionary.h +++ b/Engine/source/console/simDictionary.h @@ -33,32 +33,39 @@ #include "platform/threads/mutex.h" #endif +#ifndef USE_CLASSIC_SIMDICTIONARY #include #include #include "TorqueConfig.h" - +#endif class SimObject; -#include "core/strings/stringFunctions.h" - -struct my_hash { - inline size_t operator()(const char* val) const - { - return (long)val; - } - }; - - struct eqstr { - inline bool operator()(const char *s1, const char *s2) const { - return dStrcmp(s1, s2) == 0; - } - }; - #ifndef USE_CLASSIC_SIMDICTIONARY -typedef std::unordered_map StringDictDef; + +#include "core/strings/stringFunctions.h" + +struct DictionaryHash +{ + inline size_t operator()(const char* val) const + { + return (long)val; + } +}; + +struct eqstr +{ + inline bool operator()(const char *s1, const char *s2) const + { + return dStrcmp(s1, s2) == 0; + } +}; +#endif + +#ifndef USE_CLASSIC_SIMDICTIONARY +typedef std::unordered_map StringDictDef; typedef std::unordered_map U32DictDef; #endif