]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Extend g++ compatibility for extern inline functions
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 28 May 2012 02:55:56 +0000 (20:55 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 28 May 2012 02:55:56 +0000 (20:55 -0600)
include/util.h

index cb75b96889f3de61bafac6959403862236f1eba9..af0a02842cdaf982f4bf4bc179b918dea9c735e1 100644 (file)
@@ -57,7 +57,7 @@ SQUIDCEXTERN void Tolower(char *);
  * for the extern version in squid
  */
 #if !defined(_SQUID_EXTERNNEW_)
-#if defined(__GNUC_STDC_INLINE__)
+#if defined(__GNUC_STDC_INLINE__) || defined(__GNUC_GNU_INLINE__)
 #define _SQUID_EXTERNNEW_ extern inline __attribute__((gnu_inline))
 #else
 #define _SQUID_EXTERNNEW_ extern inline