diff --git a/BUILD.gn b/BUILD.gn index 0699a60405e19ab8c026b4403c3a22edcd99de00..c78d31ad88e51c8fcc1cb244442ebe45cb663a2a 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)", + "ENABLE_INT64", + ] } ohos_static_library("cjson_static") { sources = [ "cJSON.c" ]