From: erickson Date: Wed, 11 Jul 2007 19:20:58 +0000 (+0000) Subject: wrapped all XML-related functionality in a compiler flag to allow easier compilation... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2265ae36985118e91c168cd799009a611c1f9436;p=OpenSRF.git wrapped all XML-related functionality in a compiler flag to allow easier compilation for those not interested in the xml utilities git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/new-json2@1024 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/include/opensrf/osrf_json_xml.h b/include/opensrf/osrf_json_xml.h index 94b9207..c01b1ac 100644 --- a/include/opensrf/osrf_json_xml.h +++ b/include/opensrf/osrf_json_xml.h @@ -1,3 +1,5 @@ +#ifdef OSRF_JSON_ENABLE_XML_UTILS + #include #include #include @@ -21,3 +23,4 @@ char* jsonObjectToXML(jsonObject*); */ jsonObject* jsonXMLToJSONObject(const char* xml); +#endif diff --git a/src/libopensrf/osrf_json_xml.c b/src/libopensrf/osrf_json_xml.c index 5e7615d..283daf4 100644 --- a/src/libopensrf/osrf_json_xml.c +++ b/src/libopensrf/osrf_json_xml.c @@ -1,5 +1,7 @@ #include +#ifdef OSRF_JSON_ENABLE_XML_UTILS + struct osrfXMLGatewayParserStruct { osrfList* objStack; osrfList* keyStack; @@ -360,4 +362,4 @@ char* _escape_xml (char* text) { return out; } - +#endif