]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
GCC 4.3 changed semantics of "extern inline" to that of C99 (same as inline),
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 13 Aug 2008 03:19:05 +0000 (05:19 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Wed, 13 Aug 2008 03:19:05 +0000 (05:19 +0200)
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 2bb0a13d1f7a08ae9c686e96908d6ed90445cb69..07a1a5a2e04c1ab1b72b7eca370027ea2c11092b 100644 (file)
@@ -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