Add proper wrappers so that C++ code can use hash_table type

This commit is contained in:
Ian Romanick
2010-03-30 16:57:29 -07:00
parent 1cf43a4331
commit 066304679c
+8
View File
@@ -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 */