]> 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:22:14 +0000 (03:22 +0000)
linkhash.h

index 937772363105f5b5ce2dc46f3609fc9335a5d1c9..414599de770d6ff81fe1e98e12cfe60ddba233e3 100644 (file)
@@ -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
 
 /**