Skip to content

Commit

Permalink
Apply the fix from @pointbre in issue json-c#626 to skip "inline" on …
Browse files Browse the repository at this point in the history
…AIX, but invert the test to make it a little easier to understand.
  • Loading branch information
hawicz committed May 31, 2020
1 parent fe308b8 commit 1c6086a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linkhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/**
Expand Down

0 comments on commit 1c6086a

Please sign in to comment.