Define wrbuf_vp_puts for YAZ < 4.2.6
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 28 Jul 2011 12:50:37 +0000 (14:50 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 28 Jul 2011 12:50:37 +0000 (14:50 +0200)
This function is declared for YAZ 4.2.6 and later.

src/filter_zoom.cpp

index 6591a6e..cd233b5 100644 (file)
@@ -1252,6 +1252,13 @@ static void sort_via_cql(WRBUF cql_sortby, const char *sru_sortkeys)
     nmem_destroy(nmem);
 }
 
+#if YAZ_VERSIONL < 0x40206
+static void wrbuf_vp_puts(const char *buf, void *client_data)
+{
+    WRBUF b = (WRBUF) client_data;
+    wrbuf_puts(b, buf);
+}
+#endif
 
 void yf::Zoom::Frontend::handle_search(mp::Package &package)
 {