diff --git a/BUILD.gn b/BUILD.gn index d8804e5f127ea9382370041542bc043790b1b984..8bc7ee0eebb76348fa3a284ec98945cdfe6f271e 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -15,6 +15,7 @@ if (defined(ohos_lite)) { config("cjson_config") { include_dirs = [ "." ] ldflags = [ "-lm" ] + defines = [ "CJSON_NESTING_LIMIT=(128)" ] } cjson_sources = [ "cJSON.c", @@ -41,6 +42,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" ]