diff --git a/BUILD.gn b/BUILD.gn index 4280f84c14ee20a641217728f8d306037364d492..4d3bdb950e149cf972b29077926c135486accf76 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -17,6 +17,7 @@ if (defined(ohos_lite)) { config("cjson_config") { include_dirs = [ "." ] ldflags = [ "-lm" ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] } cjson_sources = [ "cJSON.c", @@ -46,6 +47,7 @@ if (defined(ohos_lite)) { import("//build/ohos.gni") config("cJSON_config") { include_dirs = [ "." ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] } ohos_static_library("cjson_static") { sources = [ "cJSON.c" ]