projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use ZOOM_API for new function ZOOM_get_event_str
[yaz-moved-to-github.git]
/
src
/
marcdisp.c
diff --git
a/src/marcdisp.c
b/src/marcdisp.c
index
06a4afe
..
2f5f0d5
100644
(file)
--- a/
src/marcdisp.c
+++ b/
src/marcdisp.c
@@
-18,6
+18,7
@@
#include <stdarg.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <yaz/marcdisp.h>
#include <string.h>
#include <ctype.h>
#include <yaz/marcdisp.h>
@@
-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)
{
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;
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;
}
wrbuf_destroy(wr_cdata);
return 0;
-#else
- return -1;
-#endif
}
}
+#endif
int yaz_marc_write_iso2709(yaz_marc_t mt, WRBUF wr)
{
int yaz_marc_write_iso2709(yaz_marc_t mt, WRBUF wr)
{