From bd96a25f7af2a06cafecf51b16784032dd3302d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Thu, 10 Sep 2015 00:41:12 +0200 Subject: [PATCH] Revert "GH-1232 attempt to fix reading NBT longs on OSX" This reverts commit 877fc94f507785e6a982b5f7ad86490f9a7821bb. --- depends/libnbtplusplus/include/tag_compound.h | 6 +++--- depends/libnbtplusplus/include/tag_primitive.h | 16 +++++----------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/depends/libnbtplusplus/include/tag_compound.h b/depends/libnbtplusplus/include/tag_compound.h index 66fe18b49..5ec818a37 100644 --- a/depends/libnbtplusplus/include/tag_compound.h +++ b/depends/libnbtplusplus/include/tag_compound.h @@ -124,9 +124,9 @@ public: void read_payload(io::stream_reader& reader) override; void write_payload(io::stream_writer& writer) const override; - NBT___EXPORT friend bool operator==(const tag_compound& lhs, const tag_compound& rhs) + friend bool operator==(const tag_compound& lhs, const tag_compound& rhs) { return lhs.tags == rhs.tags; } - NBT___EXPORT friend bool operator!=(const tag_compound& lhs, const tag_compound& rhs) + friend bool operator!=(const tag_compound& lhs, const tag_compound& rhs) { return !(lhs == rhs); } private: @@ -134,7 +134,7 @@ private: }; template -NBT___EXPORT std::pair tag_compound::emplace(const std::string& key, Args&&... args) +std::pair tag_compound::emplace(const std::string& key, Args&&... args) { return put(key, value(make_unique(std::forward(args)...))); } diff --git a/depends/libnbtplusplus/include/tag_primitive.h b/depends/libnbtplusplus/include/tag_primitive.h index c83e695ee..8b70c1475 100644 --- a/depends/libnbtplusplus/include/tag_primitive.h +++ b/depends/libnbtplusplus/include/tag_primitive.h @@ -38,7 +38,7 @@ namespace nbt * Common class for tag_byte, tag_short, tag_int, tag_long, tag_float and tag_double. */ template -class NBT___EXPORT tag_primitive final : public detail::crtp_tag> +class tag_primitive final : public detail::crtp_tag> { public: ///The type of the value @@ -66,16 +66,10 @@ private: T value; }; -template -NBT___EXPORT bool operator==(const tag_primitive& lhs, const tag_primitive& rhs) -{ - return lhs.get() == rhs.get(); -} -template -NBT___EXPORT bool operator!=(const tag_primitive& lhs, const tag_primitive& rhs) -{ - return !(lhs == rhs); -} +template bool operator==(const tag_primitive& lhs, const tag_primitive& rhs) +{ return lhs.get() == rhs.get(); } +template bool operator!=(const tag_primitive& lhs, const tag_primitive& rhs) +{ return !(lhs == rhs); } //Typedefs that should be used instead of the template tag_primitive. typedef tag_primitive tag_byte;