mirror of
https://github.com/json-c/json-c.git
synced 2026-03-13 18:19:06 +08:00
if compile with vs2015, enable the "static inline" declare.
This commit is contained in:
@@ -332,7 +332,14 @@ int lh_table_resize(struct lh_table *t, int new_size);
|
||||
* @param k a pointer to the key to lookup
|
||||
* @return the key's hash
|
||||
*/
|
||||
#if !defined(_MSC_VER) || (_MSC_VER > 1800)
|
||||
static inline unsigned long lh_get_hash(const struct lh_table *t, const void *k)
|
||||
{
|
||||
return t->hash_fn(k);
|
||||
}
|
||||
#else
|
||||
unsigned long lh_get_hash(const struct lh_table *t, const void *k);
|
||||
#endif
|
||||
|
||||
/* Don't use this outside of linkhash.h: */
|
||||
#ifdef __UNCONST
|
||||
|
||||
Reference in New Issue
Block a user