--- libelwix/inc/elwix/ajson.h 2024/12/04 17:46:50 1.7.60.1 +++ libelwix/inc/elwix/ajson.h 2024/12/05 12:33:49 1.7.60.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: ajson.h,v 1.7.60.1 2024/12/04 17:46:50 misho Exp $ +* $Id: ajson.h,v 1.7.60.2 2024/12/05 12:33:49 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -89,6 +89,9 @@ typedef struct _tagToken { #define json_tokstrcpy(d, j, x) { strncpy((d), json_tokstr((j), (x)), json_toklen(x)); \ (d)[json_toklen(x)] = 0; } +#ifdef __cplusplus +extern "C" { +#endif /* * json_init() - Initialize JSON handler @@ -361,5 +364,8 @@ int json_add_pair2(char * __restrict jstr, int jlen, i int json_add_array(char * __restrict jstr, int jlen, int wspace, array_t * __restrict arr); +#ifdef __cplusplus +} +#endif #endif