summaryrefslogtreecommitdiff
path: root/hash_table.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2010-03-30 16:57:29 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-30 16:57:29 -0700
commit066304679cdd8bad6bca7fb815087559cda75aaf (patch)
tree5d7b5b2553ec5722b6b52f975d8a07b9f2a25107 /hash_table.h
parent1cf43a4331dfe62aaa834e5bc6319b43eac98445 (diff)
Add proper wrappers so that C++ code can use hash_table type
Diffstat (limited to 'hash_table.h')
-rw-r--r--hash_table.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hash_table.h b/hash_table.h
index 7b302f5..b9dd343 100644
--- a/hash_table.h
+++ b/hash_table.h
@@ -31,6 +31,10 @@
#ifndef HASH_TABLE_H
#define HASH_TABLE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <string.h>
struct hash_table;
@@ -114,4 +118,8 @@ extern unsigned hash_table_string_hash(const void *key);
*/
#define hash_table_string_compare ((hash_compare_func_t) strcmp)
+#ifdef __cplusplus
+};
+#endif
+
#endif /* HASH_TABLE_H */