summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2013-08-15 07:03:16 +0200
committerIvan Maidanski <ivmai@mail.ru>2013-08-15 13:05:00 +0200
commit4872305d33db1c36a1cf7bf4ee157810d34cb6aa (patch)
treec7d3615de04979e06c716b93e50b22df4260c66e
parent593ab3d24584f3fb9a11c624dedf54ba7fdcdcd2 (diff)
Fix GC_INLINE definition to comply with ISO C90 standard (GCC)master
* 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/private/gc_priv.h b/include/private/gc_priv.h
index a6c6609..4380463 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)