From: scottmk Date: Thu, 8 Jan 2009 16:56:16 +0000 (+0000) Subject: Rename macro for compilation guard; prepare for #inclusion in C++ X-Git-Tag: osrf_rel_2_0_1~455 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4717cc1e487952fe953f2a400f14fdf168d68e3e;p=OpenSRF.git 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 --- 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