From: Eric Haszlakiewicz Date: Sun, 31 May 2020 03:22:14 +0000 (+0000) Subject: Apply the fix from @pointbre in issue #626 to skip "inline" on AIX, but invert the... X-Git-Tag: json-c-0.15-20200726~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c6086a86aa26c643a0c9e8bc4a1f7d652b33662;p=json-c Apply the fix from @pointbre in issue #626 to skip "inline" on AIX, but invert the test to make it a little easier to understand. --- diff --git a/linkhash.h b/linkhash.h index 9377723..414599d 100644 --- a/linkhash.h +++ b/linkhash.h @@ -311,11 +311,11 @@ int lh_table_resize(struct lh_table *t, int new_size); /** * @deprecated Don't use this outside of linkhash.h: */ -#if !defined(_MSC_VER) || (_MSC_VER > 1800) +#if (defined(AIX_CC) || (defined(_MSC_VER) && (_MSC_VER <= 1800)) ) /* VS2010 can't handle inline funcs, so skip it there */ -#define _LH_INLINE inline -#else #define _LH_INLINE +#else +#define _LH_INLINE inline #endif /**