tests/common: use CJSON_PUBLIC

This commit is contained in:
Max Bruckner
2017-03-01 23:16:19 +01:00
parent 2d3520e0b9
commit b44c917be9
2 changed files with 4 additions and 4 deletions

View File

@ -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;