From fe2a0e3703735ac10ba7d7a57b5d09fe318f0b40 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 21:34:17 +0000 Subject: [PATCH] Prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1604 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_legacy_json.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/opensrf/osrf_legacy_json.h b/include/opensrf/osrf_legacy_json.h index a74fb1f..caa874e 100644 --- a/include/opensrf/osrf_legacy_json.h +++ b/include/opensrf/osrf_legacy_json.h @@ -25,9 +25,11 @@ GNU General Public License for more details. #include #include +#ifdef __cplusplus +extern "C" { +#endif - -/* Parses the given JSON string and returns the built object. +/* Parses the given JSON string and returns the built object. * returns NULL (and prints parser error to stderr) on error. */ @@ -123,6 +125,9 @@ jsonObjectNode* jsonObjectIteratorNext(jsonObjectIterator* iter); */ int jsonObjectIteratorHasNext(const jsonObjectIterator* iter); +#ifdef __cplusplus +} +#endif #endif -- 2.11.0