[Opensrf-commits] r1589 - trunk/include/opensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 8 11:56:18 EST 2009
Author: scottmk
Date: 2009-01-08 11:56:16 -0500 (Thu, 08 Jan 2009)
New Revision: 1589
Modified:
trunk/include/opensrf/osrf_json.h
Log:
Rename macro for compilation guard; prepare for #inclusion in C++
Modified: trunk/include/opensrf/osrf_json.h
===================================================================
--- trunk/include/opensrf/osrf_json.h 2009-01-08 16:47:01 UTC (rev 1588)
+++ trunk/include/opensrf/osrf_json.h 2009-01-08 16:56:16 UTC (rev 1589)
@@ -13,13 +13,17 @@
GNU General Public License for more details.
*/
-#ifndef _JSON_H
-#define _JSON_H
+#ifndef JSON_H
+#define JSON_H
#include <opensrf/utils.h>
#include <opensrf/osrf_list.h>
#include <opensrf/osrf_hash.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* parser states */
#define JSON_STATE_IN_OBJECT 0x1
#define JSON_STATE_IN_ARRAY 0x2
@@ -402,5 +406,8 @@
*/
jsonObject* jsonXMLToJSONObject(const char* xml);
+#ifdef __cplusplus
+}
+#endif
#endif
More information about the opensrf-commits
mailing list