From: Henrik Nordstrom Date: Wed, 13 Aug 2008 03:19:05 +0000 (+0200) Subject: GCC 4.3 changed semantics of "extern inline" to that of C99 (same as inline), X-Git-Tag: SQUID_3_1_0_1~49^2~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f01fdf1fcb1a2376780f91021c7f5c0c759d1fd;p=thirdparty%2Fsquid.git 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. --- 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