]> granicus.if.org Git - gc/commitdiff
Fix GC_INLINE definition to comply with ISO C90 standard (GCC)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 15 Aug 2013 05:03:16 +0000 (09:03 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 15 Aug 2013 11:05:00 +0000 (15:05 +0400)
* include/private/gc_priv.h (GC_INLINE): Define as "static __inline"
for GCC if "strict ISO/ANSI C90" mode is enforced.

include/private/gc_priv.h

index a6c660941a57d0330686c628fc217cb90af04240..4380463b3aef859f49403cafccf0c1dc0e088521 100644 (file)
@@ -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)