From b44c917be91508f4e4fcd80f07dbb81d7be4233d Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Wed, 1 Mar 2017 23:16:19 +0100 Subject: [PATCH] tests/common: use CJSON_PUBLIC --- tests/common.c | 4 ++-- tests/common.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/common.c b/tests/common.c index 9c1a109..3870896 100644 --- a/tests/common.c +++ b/tests/common.c @@ -22,7 +22,7 @@ #include "common.h" -extern void reset(cJSON *item) +CJSON_PUBLIC(void) reset(cJSON *item) { if ((item != NULL) && (item->child != NULL)) { @@ -40,7 +40,7 @@ extern void reset(cJSON *item) memset(item, 0, sizeof(cJSON)); } -extern char *read_file(const char *filename) +CJSON_PUBLIC(char*) read_file(const char *filename) { FILE *file = NULL; long length = 0; diff --git a/tests/common.h b/tests/common.h index 5317345..97c09bf 100644 --- a/tests/common.h +++ b/tests/common.h @@ -25,8 +25,8 @@ #include "../cJSON.c" -extern void reset(cJSON *item); -extern char *read_file(const char *filename); +CJSON_PUBLIC(void) reset(cJSON *item); +CJSON_PUBLIC(char*) read_file(const char *filename); /* assertion helper macros */ #define assert_has_type(item, item_type) TEST_ASSERT_BITS_MESSAGE(0xFF, item_type, item->type, "Item doesn't have expected type.")