From 9bcbf3187c7ba98a4529b1c907c402a6bae22aea Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:49:11 +0100 Subject: [PATCH] RapidJSON: use 64bits wide size types Promote to 64 bits since that is what our target uses. --- src/core/stdafx.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/stdafx.h b/src/core/stdafx.h index edcc83a8..50520218 100644 --- a/src/core/stdafx.h +++ b/src/core/stdafx.h @@ -25,6 +25,13 @@ #include "thirdparty/curl/include/curl/curl.h" +// RapidJSON uses 32 bit size types. Size types are +// 64 bit wide on our target. Override it with ours. +// this must be done before the rapidjson.h include. +#define RAPIDJSON_NO_SIZETYPEDEFINE +namespace rapidjson { typedef ::std::size_t SizeType; } + +#include "rapidjson/rapidjson.h" #include "rapidjson/document.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h"