mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 18:00:13 +01:00
Make hashtable.h be C++ friendly
This commit is contained in:
parent
a0b3b93029
commit
e45a982313
1 changed files with 7 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ struct hash_table;
|
||||||
typedef unsigned (*hash_func_t)(const void *key);
|
typedef unsigned (*hash_func_t)(const void *key);
|
||||||
typedef int (*hash_compare_func_t)(const void *key1, const void *key2);
|
typedef int (*hash_compare_func_t)(const void *key1, const void *key2);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hash table constructor
|
* 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)
|
#define hash_table_string_compare ((hash_compare_func_t) strcmp)
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
};
|
||||||
|
#endif
|
||||||
#endif /* HASH_TABLE_H */
|
#endif /* HASH_TABLE_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue