mirror of
https://git.minecraftlegacy.com/backups/LCEMP.git
synced 2026-12-04 11:21:31 +00:00
fix: vs2012 building
This commit is contained in:
1 parent
9df1a077d5
commit
ea25036375
2 files changed
+8
-2
No files matched your search
@@ -20,7 +20,11 @@ wstring Hasher::getHash(wstring &name)
|
||||
//return new BigInteger(1, m.digest()).toString(16);
|
||||
|
||||
// TODO 4J Stu - Will this hash us with the same distribution as the MD5?
|
||||
#if _MSC_VER >= 1900
|
||||
return _toString( std::hash<wstring>{}( s ) );
|
||||
#else
|
||||
return _toString( stdext::hash_value( s ) );
|
||||
#endif
|
||||
//}
|
||||
//catch (NoSuchAlgorithmException e)
|
||||
//{
|
||||
|
||||
@@ -2560,9 +2560,11 @@ int Player::hash_fnct(const shared_ptr<Player> k)
|
||||
// TODO 4J Stu - Should we just be using the pointers and hashing them?
|
||||
#ifdef __PS3__
|
||||
return (int)boost::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#else
|
||||
#elif _MSC_VER >= 1900
|
||||
return (int)std::hash<wstring>{}( k->name ); // 4J Stu - Names are completely unique?
|
||||
#endif //__PS3__
|
||||
#else
|
||||
return (int)stdext::hash_value( k->name ); // 4J Stu - Names are completely unique?
|
||||
#endif
|
||||
}
|
||||
|
||||
bool Player::eq_test(const shared_ptr<Player> x, const shared_ptr<Player> y)
|
||||
|
||||
Reference in new issue
Block a user