From: Ian Romanick Date: Tue, 30 Mar 2010 23:57:29 +0000 (-0700) Subject: Add proper wrappers so that C++ code can use hash_table type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=066304679cdd8bad6bca7fb815087559cda75aaf;p=mesa.git Add proper wrappers so that C++ code can use hash_table type --- diff --git a/hash_table.h b/hash_table.h index 7b302f5dbee..b9dd343dee9 100644 --- a/hash_table.h +++ b/hash_table.h @@ -31,6 +31,10 @@ #ifndef HASH_TABLE_H #define HASH_TABLE_H +#ifdef __cplusplus +extern "C" { +#endif + #include struct hash_table; @@ -114,4 +118,8 @@ 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 */