diff options
author | robot-contrib <[email protected]> | 2022-07-21 10:02:49 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2022-07-21 10:02:49 +0300 |
commit | 7c3c2d7fb03a1591e94b4c02416793e6d7576a88 (patch) | |
tree | c91d3207bd454d95060b3472091c5db59c1db4b5 /contrib/restricted/aws/aws-c-common/source/json.c | |
parent | 2b837432409524fbb011dee286eac2cc16977240 (diff) |
Update contrib/restricted/aws/aws-c-common to 0.7.5
Diffstat (limited to 'contrib/restricted/aws/aws-c-common/source/json.c')
-rw-r--r-- | contrib/restricted/aws/aws-c-common/source/json.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/restricted/aws/aws-c-common/source/json.c b/contrib/restricted/aws/aws-c-common/source/json.c index 0f1b810be56..7f700af1fb3 100644 --- a/contrib/restricted/aws/aws-c-common/source/json.c +++ b/contrib/restricted/aws/aws-c-common/source/json.c @@ -7,6 +7,7 @@ #include <aws/common/string.h> #include <aws/common/json.h> +#include <aws/common/private/json_impl.h> #include <aws/common/external/cJSON.h> @@ -280,7 +281,10 @@ static void s_aws_cJSON_free(void *ptr) { void aws_json_module_init(struct aws_allocator *allocator) { if (!s_aws_json_module_initialized) { s_aws_json_module_allocator = allocator; - struct cJSON_Hooks allocation_hooks = {.malloc_fn = s_aws_cJSON_alloc, .free_fn = s_aws_cJSON_free}; + struct cJSON_Hooks allocation_hooks = { + .malloc_fn = s_aws_cJSON_alloc, + .free_fn = s_aws_cJSON_free, + }; cJSON_InitHooks(&allocation_hooks); s_aws_json_module_initialized = true; } |