cJSON

mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit e6869c2e0370b7139819521b5c4e1a9ef0bf392a
parent 0e0c463491004d0e69aad1368450e92d6647dff3
Author: Max Bruckner <max@maxbruckner.de>
Date:   Fri, 13 Apr 2018 10:32:29 +0800

cJSON_Utils.h: Add include guards and extern C for C++

Diffstat:
McJSON_Utils.h | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/cJSON_Utils.h b/cJSON_Utils.h @@ -20,6 +20,14 @@ THE SOFTWARE. */ +#ifndef cJSON_Utils__h +#define cJSON_Utils__h + +#ifdef __cplusplus +extern "C" +{ +#endif + #include "cJSON.h" /* Implement RFC6901 (https://tools.ietf.org/html/rfc6901) JSON Pointer spec. */ @@ -72,3 +80,9 @@ CJSON_PUBLIC(char *) cJSONUtils_FindPointerFromObjectTo(const cJSON * const obje /* Sorts the members of the object into alphabetical order. */ CJSON_PUBLIC(void) cJSONUtils_SortObject(cJSON * const object); CJSON_PUBLIC(void) cJSONUtils_SortObjectCaseSensitive(cJSON * const object); + +#ifdef __cplusplus +} +#endif + +#endif