From b8cdcdb96b4267e5dd9f4df2728df3a1dfb9ecf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 6 Sep 2015 23:46:38 +0200 Subject: [PATCH] GH-1047 build fixes --- depends/libnbtplusplus/include/endian_str.h | 4 ++-- depends/libnbtplusplus/include/text/json_formatter.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/depends/libnbtplusplus/include/endian_str.h b/depends/libnbtplusplus/include/endian_str.h index ac8e89868..4a3151c30 100644 --- a/depends/libnbtplusplus/include/endian_str.h +++ b/depends/libnbtplusplus/include/endian_str.h @@ -91,7 +91,7 @@ NBT___EXPORT void write_big(std::ostream& os, float x); NBT___EXPORT void write_big(std::ostream& os, double x); template -NBT___EXPORT void read(std::istream& is, T& x, endian e) +void read(std::istream& is, T& x, endian e) { if(e == little) read_little(is, x); @@ -100,7 +100,7 @@ NBT___EXPORT void read(std::istream& is, T& x, endian e) } template -NBT___EXPORT void write(std::ostream& os, T x, endian e) +void write(std::ostream& os, T x, endian e) { if(e == little) write_little(os, x); diff --git a/depends/libnbtplusplus/include/text/json_formatter.h b/depends/libnbtplusplus/include/text/json_formatter.h index 1762e9105..ec6537318 100644 --- a/depends/libnbtplusplus/include/text/json_formatter.h +++ b/depends/libnbtplusplus/include/text/json_formatter.h @@ -38,6 +38,7 @@ namespace text class NBT___EXPORT json_formatter { public: + json_formatter() {}; void print(std::ostream& os, const tag& t) const; };