From 8a91265468a14e6ebc82482c5e6f8bc0fe697bb3 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Sun, 18 Mar 2012 15:42:11 +0100 Subject: [PATCH] ECL was not using 'inline' functions when GCC switched to C99 (A. Hefner) --- src/h/config.h.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/h/config.h.in b/src/h/config.h.in index 37e594896..b799c9a1e 100644 --- a/src/h/config.h.in +++ b/src/h/config.h.in @@ -224,7 +224,9 @@ typedef unsigned char ecl_base_char; * C macros for inlining, denoting probable code paths and other stuff * that makes better code. Most of it is GCC specific. */ -#if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) +#if defined(__cplusplus) || \ + (defined(__GNUC__) && \ + (defined(__GNUC_GNU_INLINE__) || defined(__GNUC_STDC_INLINE__))) #define ECL_INLINE inline #define ECL_CAN_INLINE 1 #else