From fa5b1efd23f741ec9b5922de8f2759292c400aeb Mon Sep 17 00:00:00 2001 From: Jan Wrobel Date: Tue, 26 Aug 2014 19:23:58 +0200 Subject: [PATCH] Fix `RAPIDJSON_HAS_STDSTRING is not defined` compilation warning --- include/rapidjson/document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/document.h b/include/rapidjson/document.h index 965cefe..9f6886c 100644 --- a/include/rapidjson/document.h +++ b/include/rapidjson/document.h @@ -1265,7 +1265,7 @@ int z = a[0u].GetInt(); // This works too. */ GenericValue& SetString(const Ch* s, Allocator& allocator) { return SetString(s, internal::StrLen(s), allocator); } -#if RAPIDJSON_HAS_STDSTRING +#ifdef RAPIDJSON_HAS_STDSTRING //! Set this value as a string by copying from source string. /*! \param s source string. \param allocator Allocator for allocating copied buffer. Commonly use GenericDocument::GetAllocator().