summaryrefslogtreecommitdiff
path: root/include/netlink/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink/hash.h')
-rw-r--r--include/netlink/hash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/netlink/hash.h b/include/netlink/hash.h
index 0bda74ea..5df4099a 100644
--- a/include/netlink/hash.h
+++ b/include/netlink/hash.h
@@ -5,6 +5,7 @@
*/
#ifndef CCAN_HASH_H
#define CCAN_HASH_H
+
#include <stdint.h>
#include <stdlib.h>
#include <endian.h>
@@ -14,6 +15,10 @@
* http://burtleburtle.net/bob/c/lookup3.c
*/
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef __LITTLE_ENDIAN
# define HAVE_LITTLE_ENDIAN 1
#elif __BIG_ENDIAN
@@ -66,4 +71,8 @@
/* Our underlying operations. */
uint32_t nl_hash_any(const void *key, size_t length, uint32_t base);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* HASH_H */