From 1f01fdf1fcb1a2376780f91021c7f5c0c759d1fd Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Wed, 13 Aug 2008 05:19:05 +0200 Subject: [PATCH] GCC 4.3 changed semantics of "extern inline" to that of C99 (same as inline), but we assume GNU GCC semantics. This sets the needed attribute to tell GCC to continue using GNU GCC semantics on this function. --- include/util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/util.h b/include/util.h index 2bb0a13d1f..07a1a5a2e0 100644 --- a/include/util.h +++ b/include/util.h @@ -89,9 +89,13 @@ SQUIDCEXTERN void xxfree(const void *); */ #define _SQUID_EXTERNNEW_ extern #else +#ifdef __GNUC_STDC_INLINE__ +#define _SQUID_EXTERNNEW_ extern inline __attribute__((gnu_inline)) +#else #define _SQUID_EXTERNNEW_ extern inline #endif #endif +#endif #include "SquidNew.h" #endif -- 2.47.2