X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmarcdisp.c;h=2f5f0d513e9fdbd537b0b960bf9406464bb9364b;hb=9bf84c30a3d0e3e1d4b9136aee9c0a4b8ae769d2;hp=06a4afefae5a97b945b1ed36506606d406261aac;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/src/marcdisp.c b/src/marcdisp.c index 06a4afe..2f5f0d5 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -717,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; @@ -827,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) {