projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf43a4
)
Add proper wrappers so that C++ code can use hash_table type
author
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 30 Mar 2010 23:57:29 +0000
(16:57 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 30 Mar 2010 23:57:29 +0000
(16:57 -0700)
hash_table.h
patch
|
blob
|
history
diff --git
a/hash_table.h
b/hash_table.h
index 7b302f5dbeee0e23f4228cbc59e42ccda0e3678e..b9dd343dee9c0f44e16b2c70e2ad5e00fbda0090 100644
(file)
--- 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 */