mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
- Fixes the hash definition in ObjectGuid.h. This looks like it allows mangos to compile on FreeBSD 10 with clang
This commit is contained in:
parent
23d7b418dc
commit
3bc66c3be1
1 changed files with 9 additions and 2 deletions
|
|
@ -310,8 +310,11 @@ ByteBuffer& operator>> (ByteBuffer& buf, PackedGuidReader const& guid);
|
|||
|
||||
inline PackedGuid ObjectGuid::WriteAsPacked() const { return PackedGuid(*this); }
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
namespace std{
|
||||
# else
|
||||
HASH_NAMESPACE_START
|
||||
|
||||
#endif
|
||||
template<>
|
||||
class hash<ObjectGuid>
|
||||
{
|
||||
|
|
@ -322,8 +325,12 @@ class hash<ObjectGuid>
|
|||
return hash<uint64>()(key.GetRawValue());
|
||||
}
|
||||
};
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
}
|
||||
# else
|
||||
HASH_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
|
||||
#define DEFINE_READGUIDMASK(T1, T2) template <T1> \
|
||||
void ByteBuffer::ReadGuidMask(ObjectGuid& guid) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue