Browse Source

Merge pull request #872 from GitMensch/patch-2

fix linkhash breaking -std=c89
pull/884/head
Eric Hawicz GitHub 9 months ago
parent
commit
a304464807
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      linkhash.h

+ 3
- 2
linkhash.h View File

@@ -334,8 +334,9 @@ int lh_table_resize(struct lh_table *t, int new_size);
/**
* @deprecated Don't use this outside of linkhash.h:
*/
#if (defined(AIX_CC) || (defined(_MSC_VER) && (_MSC_VER <= 1800)) )
/* VS2010 can't handle inline funcs, so skip it there */
#if !defined (__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
/* 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
#else
#define _LH_INLINE inline


Loading…
Cancel
Save