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
Removed definition statserv_remove to eventl.h. (A hack really).
[yaz-moved-to-github.git]
/
include
/
wrbuf.h
diff --git
a/include/wrbuf.h
b/include/wrbuf.h
index
9e8d15e
..
7a686ac
100644
(file)
--- a/
include/wrbuf.h
+++ b/
include/wrbuf.h
@@
-28,7
+28,11
@@
#ifndef WRBUF_H
#define WRBUF_H
#ifndef WRBUF_H
#define WRBUF_H
-#include <yconfig.h>
+#include <xmalloc.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef struct wrbuf
{
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)
(((b)->pos >= (b)->size ? wrbuf_grow(b, 1) : 0), \
(b)->buf[(b)->pos++] = (c), 0)
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif