]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Apply the fix from @pointbre in issue #626 to skip "inline" on AIX, but invert the...
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 31 May 2020 03:22:14 +0000 (03:22 +0000)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 31 May 2020 03:38:01 +0000 (03:38 +0000)
(cherry picked from commit 1c6086a86aa26c643a0c9e8bc4a1f7d652b33662)

linkhash.h

index 9c2f5c1b2581a63a48c58f20bcc604e62153659f..c120297ed9a35c5ac968317bd38764fd4b250270 100644 (file)
@@ -348,11 +348,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
 
 /**