New windows NT/95 port using MSV5.0. To export DLL functions the
[yaz-moved-to-github.git] / include / wrbuf.h
index 9e8d15e..7a686ac 100644 (file)
 #ifndef WRBUF_H
 #define WRBUF_H
 
-#include <yconfig.h>
+#include <xmalloc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 typedef struct wrbuf
 {
@@ -50,4 +54,8 @@ int wrbuf_write(WRBUF b, char *buf, int size);
     (((b)->pos >= (b)->size ? wrbuf_grow(b, 1) : 0),  \
     (b)->buf[(b)->pos++] = (c), 0)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif