summaryrefslogtreecommitdiffstats
path: root/include/libmnl/libmnl.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-10-22 22:28:24 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-10-22 23:10:58 +0200
commitdc7aaccd9fb034f0cc7ac3440b0d1b991bd034dc (patch)
treec7f417d596e7f8a7c9b4830eb0eac672be3a240d /include/libmnl/libmnl.h
parent672366907b823a7748cb9a7252005145c522a385 (diff)
include: add cplusplus guards for extern
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/libmnl/libmnl.h')
-rw-r--r--include/libmnl/libmnl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index d766183..b64306a 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -6,6 +6,10 @@
#include <sys/socket.h> /* for sa_family_t */
#include <linux/netlink.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Netlink socket API
*/
@@ -156,4 +160,8 @@ extern int mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq,
#define SOL_NETLINK 270
#endif
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif