summaryrefslogtreecommitdiffstats
path: root/include/dect/libdect.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-07-09 00:18:04 +0200
committerPatrick McHardy <kaber@trash.net>2010-07-09 00:18:56 +0200
commitf2de7d6b9d5ae75b0dc7614dad996c2b341977ae (patch)
tree05affe8e20dff6071e56f9bbe6dd5c292aad0b8b /include/dect/libdect.h
parent95810170dfec244ba03456ddb5ab0efa50a19e1f (diff)
headers: make headers usable by C++
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/dect/libdect.h')
-rw-r--r--include/dect/libdect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/dect/libdect.h b/include/dect/libdect.h
index ba95b5a..b004505 100644
--- a/include/dect/libdect.h
+++ b/include/dect/libdect.h
@@ -20,6 +20,10 @@
#include <dect/ss.h>
#include <list.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct dect_handle;
/**
@@ -138,4 +142,7 @@ extern int dect_init(struct dect_handle *dh);
extern void dect_set_debug_hook(int (*fn)(const char *fmt, va_list ap));
+#ifdef __cplusplus
+extern "C" {
+#endif
#endif /* _LIBDECT_DECT_LIBDECT_H */