From 4717cc1e487952fe953f2a400f14fdf168d68e3e Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 16:56:16 +0000 Subject: [PATCH] Rename macro for compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1589 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/osrf_json.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/opensrf/osrf_json.h b/include/opensrf/osrf_json.h index 46e41a3..8ac7d70 100644 --- a/include/opensrf/osrf_json.h +++ b/include/opensrf/osrf_json.h @@ -13,13 +13,17 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. */ -#ifndef _JSON_H -#define _JSON_H +#ifndef JSON_H +#define JSON_H #include #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* parser states */ #define JSON_STATE_IN_OBJECT 0x1 #define JSON_STATE_IN_ARRAY 0x2 @@ -402,5 +406,8 @@ char* jsonObjectToXML(const jsonObject*); */ jsonObject* jsonXMLToJSONObject(const char* xml); +#ifdef __cplusplus +} +#endif #endif -- 2.11.0