diff --git a/BUILD.gn b/BUILD.gn index 31ff390839ae38dd065621d21414dc234ff14b91..36b512194b8d0f322b627be6a34dc48dfc58bf1c 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" ]