From b55bad569eb7255378533de9f46ced29c4a9d281 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 18 Jun 2012 15:47:01 +0200 Subject: [PATCH] record_render: make it compile wo Libxml2 --- src/record_render.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 1.7.10.4