]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 15 Aug 2008 10:53:02 +0000 (22:53 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 15 Aug 2008 10:53:02 +0000 (22:53 +1200)
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

index ec46aba06cac936e63c8823a66a483d4a95d9495..3e918fc2728009761fdd8e861c174e9ac19d6039 100644 (file)
@@ -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