diff options
author | Ian Romanick <[email protected]> | 2010-07-06 14:36:54 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-07-06 15:00:46 -0700 |
commit | e45a982313e02dbc186b51cf0935e0bec18dc61a (patch) | |
tree | 5dfb06ab1b19303dd85aa68ecacc036165f1b89a /src | |
parent | a0b3b9302978ab6d4db62f0c9b2b313ebc7ed0b4 (diff) |
Make hashtable.h be C++ friendly
Diffstat (limited to 'src')
-rw-r--r-- | 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 7b302f5dbee..881e756f087 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 */ |