]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Extend g++ compatibility for extern inline functions.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 30 Jan 2012 16:19:08 +0000 (17:19 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 30 Jan 2012 16:19:08 +0000 (17:19 +0100)
include/util.h

index 973e51061667e977af09efe069111c3d997cd631..1391092084b1fa5c44f72cd045bf421b5ff3ca5c 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