From 8b87d3d467b9285b6af9d3bac339ec0b88c69151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B7=8D?= Date: Mon, 24 Mar 2025 16:19:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=89=93=E5=BC=80cjson=E6=94=AF=E6=8C=81in?= =?UTF-8?q?t64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李巍 --- BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BUILD.gn b/BUILD.gn index e61b60a..bcc6e01 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -42,7 +42,10 @@ if (defined(ohos_lite)) { import("//build/ohos.gni") config("cJSON_config") { include_dirs = [ "//third_party/cJSON" ] - defines = [ "CJSON_NESTING_LIMIT=(128)" ] + defines = [ + "CJSON_NESTING_LIMIT=(128)", + "__CJSON_USE_INT64", + ] } ohos_static_library("cjson_static") { branch_protector_ret = "pac_ret" -- Gitee From e28b04b2c10bab6cd3dc2b1502b3e1cd2937ce10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B7=8D?= Date: Mon, 24 Mar 2025 17:05:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=89=93=E5=BC=80int64=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 李巍 --- BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index bcc6e01..59357a9 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -42,9 +42,9 @@ if (defined(ohos_lite)) { import("//build/ohos.gni") config("cJSON_config") { include_dirs = [ "//third_party/cJSON" ] - defines = [ + defines = [ "CJSON_NESTING_LIMIT=(128)", - "__CJSON_USE_INT64", + "ENABLE_INT64", ] } ohos_static_library("cjson_static") { -- Gitee