mirror of
https://github.com/json-c/json-c.git
synced 2026-11-08 22:50:47 +08:00
Issue #941: fix "defined but not used" errors when building with a c++ compiler.
This commit is contained in:
1 parent
324e5ca593
commit
aab792578b
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -345,7 +345,7 @@ int lh_table_resize(struct lh_table *t, int new_size);
|
||||
/**
|
||||
* @deprecated Don't use this outside of linkhash.h:
|
||||
*/
|
||||
#if !defined (__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
|
||||
#if !defined(__cplusplus) && (!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
|
||||
|
||||
Reference in new issue
Block a user