From 6f128258ef7bf8fad368e60d826817822d0c89f1 Mon Sep 17 00:00:00 2001 From: "Greg A. Woods" Date: Fri, 22 Mar 2024 15:57:50 -0700 Subject: [PATCH] src/yajl/yajl_tree.h: declare yajl_tree_parse_afs as a YAJL_API --- src/yajl/yajl_tree.h | 2 +- src/yajl_tree.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yajl/yajl_tree.h b/src/yajl/yajl_tree.h index 9ab1206..8677a49 100644 --- a/src/yajl/yajl_tree.h +++ b/src/yajl/yajl_tree.h @@ -38,7 +38,7 @@ extern "C" { #endif /*+ an optional hook to allow use of custom yajl_alloc_funcs with yajl_tree_parse() +*/ -extern yajl_alloc_funcs *yajl_tree_parse_afs; +extern YAJL_API yajl_alloc_funcs *yajl_tree_parse_afs; /*+ possible data types that a yajl_val_s can hold +*/ typedef enum { diff --git a/src/yajl_tree.c b/src/yajl_tree.c index bbf2be0..ce00cf8 100644 --- a/src/yajl_tree.c +++ b/src/yajl_tree.c @@ -47,7 +47,7 @@ #define STATUS_CONTINUE 1 #define STATUS_ABORT 0 -yajl_alloc_funcs *yajl_tree_parse_afs = NULL; +YAJL_API yajl_alloc_funcs *yajl_tree_parse_afs = NULL; struct stack_elem_s; typedef struct stack_elem_s stack_elem_t;