From: Amos Jeffries Date: Fri, 15 Aug 2008 10:53:02 +0000 (+1200) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_0_STABLE9~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a9038931b73419fa95dbd161f2d04ce155ce55e;p=thirdparty%2Fsquid.git Author: Henrik Nordstrom 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 ec46aba06c..3e918fc272 100644 --- a/include/util.h +++ b/include/util.h @@ -91,9 +91,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