From: Ian Romanick Date: Tue, 6 Jul 2010 21:36:54 +0000 (-0700) Subject: Make hashtable.h be C++ friendly X-Git-Tag: 062012170305~10660^2~501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e45a982313e02dbc186b51cf0935e0bec18dc61a;p=profile%2Fivi%2Fmesa.git Make hashtable.h be C++ friendly --- 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 */