From: Amos Jeffries Date: Fri, 10 Aug 2012 01:12:48 +0000 (+1200) Subject: MacOS: warning: 'gnu_inline' attribute directive ignored X-Git-Tag: sourceformat-review-1~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bf7a01b910d79a56c31911239eb14ea4d2ab8ef;p=thirdparty%2Fsquid.git MacOS: warning: 'gnu_inline' attribute directive ignored --- diff --git a/compat/os/macosx.h b/compat/os/macosx.h index 4baf2dc848..049dafdac6 100644 --- a/compat/os/macosx.h +++ b/compat/os/macosx.h @@ -20,5 +20,10 @@ #include "compat/cmsg.h" +// MacOS GCC 4.0.1 and 4.2.1 supply __GNUC_GNU_INLINE__ but do not actually define __attribute__((gnu_inline)) +#if defined(__cplusplus) +#define _SQUID_EXTERNNEW_ extern inline +#endif + #endif /* _SQUID_APPLE_ */ #endif /* SQUID_OS_MACOSX_H */