Mesa (glsl2): Make hashtable.h be C++ friendly
Ian Romanick
idr at kemper.freedesktop.org
Tue Jul 6 22:05:00 UTC 2010
Module: Mesa
Branch: glsl2
Commit: e45a982313e02dbc186b51cf0935e0bec18dc61a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e45a982313e02dbc186b51cf0935e0bec18dc61a
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Tue Jul 6 14:36:54 2010 -0700
Make hashtable.h be C++ friendly
---
src/mesa/shader/hash_table.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/mesa/shader/hash_table.h b/src/mesa/shader/hash_table.h
index 7b302f5..881e756 100644
--- 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 */
More information about the mesa-commit
mailing list