[Opensrf-commits] r1604 - trunk/include/opensrf

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Jan 8 16:34:21 EST 2009


Author: scottmk
Date: 2009-01-08 16:34:17 -0500 (Thu, 08 Jan 2009)
New Revision: 1604

Modified:
   trunk/include/opensrf/osrf_legacy_json.h
Log:
Prepare for #inclusion in C++


Modified: trunk/include/opensrf/osrf_legacy_json.h
===================================================================
--- trunk/include/opensrf/osrf_legacy_json.h	2009-01-08 21:25:42 UTC (rev 1603)
+++ trunk/include/opensrf/osrf_legacy_json.h	2009-01-08 21:34:17 UTC (rev 1604)
@@ -25,9 +25,11 @@
 #include <opensrf/osrf_json.h>
 #include <ctype.h>
 
+#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 @@
  */
 int jsonObjectIteratorHasNext(const jsonObjectIterator* iter);
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif
 



More information about the opensrf-commits mailing list