wrapped all XML-related functionality in a compiler flag to allow easier compilation...
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 11 Jul 2007 19:20:58 +0000 (19:20 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 11 Jul 2007 19:20:58 +0000 (19:20 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/new-json2@1024 9efc2488-bf62-4759-914b-345cdb29e865

include/opensrf/osrf_json_xml.h
src/libopensrf/osrf_json_xml.c

index 94b9207..c01b1ac 100644 (file)
@@ -1,3 +1,5 @@
+#ifdef OSRF_JSON_ENABLE_XML_UTILS
+
 #include <stdio.h>
 #include <string.h>
 #include <libxml/globals.h>
@@ -21,3 +23,4 @@ char* jsonObjectToXML(jsonObject*);
  */
 jsonObject* jsonXMLToJSONObject(const char* xml);
 
+#endif
index 5e7615d..283daf4 100644 (file)
@@ -1,5 +1,7 @@
 #include <opensrf/osrf_json_xml.h>
 
+#ifdef OSRF_JSON_ENABLE_XML_UTILS
+
 struct osrfXMLGatewayParserStruct {
     osrfList* objStack;
     osrfList* keyStack;
@@ -360,4 +362,4 @@ char* _escape_xml (char* text) {
        return out;
 }
 
-
+#endif