[Opensrf-commits] r1590 - trunk/include/opensrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jan 8 12:14:02 EST 2009
Author: scottmk
Date: 2009-01-08 12:13:58 -0500 (Thu, 08 Jan 2009)
New Revision: 1590
Modified:
trunk/include/opensrf/xml_utils.h
Log:
Rename macro for compilation guard; prepare for #inclusion in C++
Modified: trunk/include/opensrf/xml_utils.h
===================================================================
--- trunk/include/opensrf/xml_utils.h 2009-01-08 16:56:16 UTC (rev 1589)
+++ trunk/include/opensrf/xml_utils.h 2009-01-08 17:13:58 UTC (rev 1590)
@@ -1,10 +1,14 @@
-#ifndef _XML_UTILS_H
-#define _XML_UTILS_H
+#ifndef XML_UTILS_H
+#define XML_UTILS_H
#include <opensrf/osrf_json.h>
#include <libxml/parser.h>
#include <libxml/tree.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
jsonObject* xmlDocToJSON(xmlDocPtr doc);
/* debug function, prints each node and content */
@@ -29,5 +33,8 @@
*/
int xmlAddAttrs( xmlNodePtr node, const xmlChar** atts );
+#ifdef __cplusplus
+}
+#endif
#endif
More information about the opensrf-commits
mailing list