From 0ae6b5bf1858900a7ea684ef74b813db7bf0edf4 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 8 Jan 2009 17:13:58 +0000 Subject: [PATCH] Rename macro for compilation guard; prepare for #inclusion in C++ git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1590 9efc2488-bf62-4759-914b-345cdb29e865 --- include/opensrf/xml_utils.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/opensrf/xml_utils.h b/include/opensrf/xml_utils.h index 42318f9..ebcc15a 100644 --- a/include/opensrf/xml_utils.h +++ b/include/opensrf/xml_utils.h @@ -1,10 +1,14 @@ -#ifndef _XML_UTILS_H -#define _XML_UTILS_H +#ifndef XML_UTILS_H +#define XML_UTILS_H #include #include #include +#ifdef __cplusplus +extern "C" { +#endif + jsonObject* xmlDocToJSON(xmlDocPtr doc); /* debug function, prints each node and content */ @@ -29,5 +33,8 @@ char* xmlSaxAttr( const xmlChar** atts, const char* name ); */ int xmlAddAttrs( xmlNodePtr node, const xmlChar** atts ); +#ifdef __cplusplus +} +#endif #endif -- 2.11.0