X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarcdisp.c;h=2f5f0d513e9fdbd537b0b960bf9406464bb9364b;hp=d24421005f5d51044d7b8f523e7f72762a2d3b6a;hb=3fa6bf34c5496f69a63469a3184251d38758c85d;hpb=75c9defe1c9ffb8efe58507dc994a56e6fd0409b diff --git a/src/marcdisp.c b/src/marcdisp.c index d244210..2f5f0d5 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -718,12 +718,12 @@ int yaz_marc_write_marcxchange(yaz_marc_t mt, WRBUF wr, } +#if YAZ_HAVE_XML2 int yaz_marc_write_xml(yaz_marc_t mt, xmlNode **root_ptr, const char *ns, const char *format, const char *type) { -#if YAZ_HAVE_XML2 struct yaz_marc_node *n; int identifier_length; const char *leader = 0; @@ -828,10 +828,8 @@ int yaz_marc_write_xml(yaz_marc_t mt, xmlNode **root_ptr, } wrbuf_destroy(wr_cdata); return 0; -#else - return -1; -#endif } +#endif int yaz_marc_write_iso2709(yaz_marc_t mt, WRBUF wr) {