From: Adam Dickmeiss Date: Mon, 18 Jun 2012 13:47:01 +0000 (+0200) Subject: record_render: make it compile wo Libxml2 X-Git-Tag: v4.2.35~10 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=b55bad569eb7255378533de9f46ced29c4a9d281;p=yaz-moved-to-github.git record_render: make it compile wo Libxml2 --- diff --git a/src/record_render.c b/src/record_render.c index 291462b..ba5311e 100644 --- a/src/record_render.c +++ b/src/record_render.c @@ -22,8 +22,10 @@ #include #include +#if YAZ_HAVE_XML2 #include #include +#endif static yaz_iconv_t iconv_create_charset(const char *record_charset, yaz_iconv_t *cd2) @@ -227,6 +229,7 @@ static const char *get_record_format(WRBUF wrbuf, int *len, return res; } +#if YAZ_HAVE_XML2 static int replace_node(NMEM nmem, xmlNode *ptr, const char *type_spec, char *record_buf) { @@ -267,11 +270,13 @@ static int replace_node(NMEM nmem, xmlNode *ptr, odr_destroy(odr); return ret; } +#endif static const char *base64_render(NMEM nmem, WRBUF wrbuf, const char *buf, int *len, const char *expr, const char *type_spec) { +#if YAZ_HAVE_XML2 xmlDocPtr doc = xmlParseMemory(buf, *len); if (doc) { @@ -326,6 +331,7 @@ static const char *base64_render(NMEM nmem, WRBUF wrbuf, xmlFreeDoc(doc); xmlFree(buf_out); } +#endif return buf; }