diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-08-15 09:03:16 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-08-15 15:05:00 +0400 |
commit | 4872305d33db1c36a1cf7bf4ee157810d34cb6aa (patch) | |
tree | c7d3615de04979e06c716b93e50b22df4260c66e | |
parent | 593ab3d24584f3fb9a11c624dedf54ba7fdcdcd2 (diff) | |
download | bdwgc-4872305d33db1c36a1cf7bf4ee157810d34cb6aa.tar.gz |
Fix GC_INLINE definition to comply with ISO C90 standard (GCC)
* include/private/gc_priv.h (GC_INLINE): Define as "static __inline"
for GCC if "strict ISO/ANSI C90" mode is enforced.
-rw-r--r-- | include/private/gc_priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h index a6c66094..4380463b 100644 --- a/include/private/gc_priv.h +++ b/include/private/gc_priv.h @@ -148,6 +148,7 @@ typedef char * ptr_t; /* A generic pointer to which we can add */ /* The "inline" keyword is determined by Autoconf AC_C_INLINE. */ # define GC_INLINE static inline #elif defined(_MSC_VER) || defined(__INTEL_COMPILER) || defined(__DMC__) \ + || ((__GNUC__ >= 3) && defined(__STRICT_ANSI__)) \ || defined(__WATCOMC__) # define GC_INLINE static __inline #elif (__GNUC__ >= 3) || defined(__sun) |