From dd89bd3703d4a29f657d7ca98a78ae45f6932c21 Mon Sep 17 00:00:00 2001 From: carlsonsolutiondesign Date: Thu, 17 Dec 2015 17:02:06 -0500 Subject: [PATCH] Only test for __APPLE__ here to avoid conflicts with Linux (and maybe Windows) --- contrib/rapidjson/include/rapidjson/document.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/rapidjson/include/rapidjson/document.h b/contrib/rapidjson/include/rapidjson/document.h index 45b270811..e90d6a391 100644 --- a/contrib/rapidjson/include/rapidjson/document.h +++ b/contrib/rapidjson/include/rapidjson/document.h @@ -545,6 +545,7 @@ public: flags_ |= kIntFlag; } +#if defined(__APPLE__) //! Constructor for unsigned long value. explicit GenericValue(unsigned long u64) RAPIDJSON_NOEXCEPT : data_(), flags_(kNumberUint64Flag) { data_.n.u64 = u64; @@ -555,6 +556,7 @@ public: if (!(u64 & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000))) flags_ |= kIntFlag; } +#endif //! Constructor for double value. explicit GenericValue(double d) RAPIDJSON_NOEXCEPT : data_(), flags_(kNumberDoubleFlag) { data_.n.d = d; }