diff --git a/src/game/ObjectGuid.h b/src/game/ObjectGuid.h index 00dea1b44..63e4ed9f2 100644 --- a/src/game/ObjectGuid.h +++ b/src/game/ObjectGuid.h @@ -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 { @@ -322,8 +325,12 @@ class hash return hash()(key.GetRawValue()); } }; - +#if defined(__FreeBSD__) +} +# else HASH_NAMESPACE_END +#endif + #define DEFINE_READGUIDMASK(T1, T2) template \ void ByteBuffer::ReadGuidMask(ObjectGuid& guid) \