Apply patches to rapidjson
Some checks are pending
Build Android / Game (Android, Release ARM64) (push) Waiting to run
Build iOS / Game (iOS, Release ARM64) (push) Waiting to run
Build Linux / Editor (Linux, Development x64) (push) Waiting to run
Build Linux / Game (Linux, Release x64) (push) Waiting to run
Build macOS / Editor (Mac, Development ARM64) (push) Waiting to run
Build macOS / Game (Mac, Release ARM64) (push) Waiting to run
Build Windows / Editor (Windows, Development x64) (push) Waiting to run
Build Windows / Game (Windows, Release x64) (push) Waiting to run
Cooker / Cook (Mac) (push) Waiting to run
Tests / Tests (Linux) (push) Waiting to run
Tests / Tests (Windows) (push) Waiting to run
Some checks are pending
Build Android / Game (Android, Release ARM64) (push) Waiting to run
Build iOS / Game (iOS, Release ARM64) (push) Waiting to run
Build Linux / Editor (Linux, Development x64) (push) Waiting to run
Build Linux / Game (Linux, Release x64) (push) Waiting to run
Build macOS / Editor (Mac, Development ARM64) (push) Waiting to run
Build macOS / Game (Mac, Release ARM64) (push) Waiting to run
Build Windows / Editor (Windows, Development x64) (push) Waiting to run
Build Windows / Game (Windows, Release x64) (push) Waiting to run
Cooker / Cook (Mac) (push) Waiting to run
Tests / Tests (Linux) (push) Waiting to run
Tests / Tests (Windows) (push) Waiting to run
This commit is contained in:
@@ -5,14 +5,23 @@
|
||||
#include "Engine/Core/Types/String.h"
|
||||
#include "Engine/Core/Types/StringView.h"
|
||||
|
||||
// TODO: config RAPIDJSON_SSE2 for rapidjson
|
||||
// TODO: config RAPIDJSON_SSE42 for rapidjson
|
||||
#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__) || defined(_M_X64) || defined(_M_AMD64)
|
||||
//#define RAPIDJSON_SSE42
|
||||
#elif defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64)
|
||||
//#define RAPIDJSON_NEON
|
||||
#endif
|
||||
|
||||
#define RAPIDJSON_ERROR_CHARTYPE Char
|
||||
#define RAPIDJSON_ERROR_STRING(x) TEXT(x)
|
||||
#define RAPIDJSON_ASSERT(x) ASSERT(x)
|
||||
#define RAPIDJSON_NEW(x) New<x>()
|
||||
#define RAPIDJSON_NEW(x) New<x>
|
||||
#define RAPIDJSON_DELETE(x) Delete(x)
|
||||
#define RAPIDJSON_NOMEMBERITERATORCLASS
|
||||
#include <ThirdParty/rapidjson/rapidjson.h>
|
||||
//#define RAPIDJSON_MALLOC(size) ::malloc(size)
|
||||
//#define RAPIDJSON_REALLOC(ptr, new_size) ::realloc(ptr, new_size)
|
||||
//#define RAPIDJSON_FREE(ptr) ::free(ptr)
|
||||
|
||||
#include <ThirdParty/rapidjson/writer.h>
|
||||
#include <ThirdParty/rapidjson/prettywriter.h>
|
||||
#include <ThirdParty/rapidjson/document.h>
|
||||
|
||||
Reference in New Issue
Block a user