fix linkhash breaking -std=c89
making the definition of _LH_INLINE depending on __STDC_VERSION__, not on a specific compiler
This commit is contained in:
@@ -334,8 +334,9 @@ int lh_table_resize(struct lh_table *t, int new_size);
|
|||||||
/**
|
/**
|
||||||
* @deprecated Don't use this outside of linkhash.h:
|
* @deprecated Don't use this outside of linkhash.h:
|
||||||
*/
|
*/
|
||||||
#if (defined(AIX_CC) || (defined(_MSC_VER) && (_MSC_VER <= 1800)) )
|
#if !defined (__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
|
||||||
/* VS2010 can't handle inline funcs, so skip it there */
|
/* C89 compilers like VS2010 can't handle inline funcs, so skip it there,
|
||||||
|
note: this also applies to -std=c89 in GCC! */
|
||||||
#define _LH_INLINE
|
#define _LH_INLINE
|
||||||
#else
|
#else
|
||||||
#define _LH_INLINE inline
|
#define _LH_INLINE inline
|
||||||
|
|||||||
Reference in New Issue
Block a user