RapidJSON: use 64bits wide size types

Promote to 64 bits since that is what our target uses.
This commit is contained in:
Kawe Mazidjatari 2025-01-13 15:49:11 +01:00
parent 18f2e27409
commit 9bcbf3187c

View File

@ -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"