projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b3b93
)
Make hashtable.h be C++ friendly
author
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 6 Jul 2010 21:36:54 +0000
(14:36 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 6 Jul 2010 22:00:46 +0000
(15:00 -0700)
src/mesa/shader/hash_table.h
patch
|
blob
|
history
diff --git
a/src/mesa/shader/hash_table.h
b/src/mesa/shader/hash_table.h
index 7b302f5dbeee0e23f4228cbc59e42ccda0e3678e..881e756f0876ace99337c7bf7d484c2f509b92e1 100644
(file)
--- a/
src/mesa/shader/hash_table.h
+++ b/
src/mesa/shader/hash_table.h
@@
-38,6
+38,10
@@
struct hash_table;
typedef unsigned (*hash_func_t)(const void *key);
typedef int (*hash_compare_func_t)(const void *key1, const void *key2);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Hash table constructor
*
@@
-114,4
+118,7
@@
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 */