From: Amos Jeffries Date: Thu, 5 Nov 2009 12:06:31 +0000 (+1300) Subject: Cleanup: shuffle new() hack for SGI into compat. X-Git-Tag: SQUID_3_2_0_1~613 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5309de6e2ba7b5290e54ea3de64478b54d0018c;p=thirdparty%2Fsquid.git Cleanup: shuffle new() hack for SGI into compat. --- diff --git a/compat/os/sgi.h b/compat/os/sgi.h index 5fc9e67ac3..dc5bef703a 100644 --- a/compat/os/sgi.h +++ b/compat/os/sgi.h @@ -21,6 +21,14 @@ #define _ABI_SOURCE #endif /* USE_ASYNC_IO */ +#if defined(__cplusplus) && !defined(_SQUID_EXTERNNEW_) && !defined(_GNUC_) +/* + * The gcc compiler treats extern inline functions as being extern, + * while the SGI MIPSpro compilers treat them as inline. To get equivalent + * behavior, remove the inline keyword. + */ +#define _SQUID_EXTERNNEW_ extern +#endif #endif /* _SQUID_SGI_ */ #endif /* SQUID_OS_SGI_H */ diff --git a/include/util.h b/include/util.h index 093225d783..28f56d29bf 100644 --- a/include/util.h +++ b/include/util.h @@ -81,21 +81,12 @@ SQUIDCEXTERN void xxfree(const void *); * for the extern version in squid */ #ifndef _SQUID_EXTERNNEW_ -#if defined(_SQUID_SGI_) && !defined(_GNUC_) -/* - * The gcc compiler treats extern inline functions as being extern, - * while the SGI MIPSpro compilers treat them as inline. To get equivalent - * behavior, remove the inline keyword. - */ -#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