From b5309de6e2ba7b5290e54ea3de64478b54d0018c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Fri, 6 Nov 2009 01:06:31 +1300 Subject: [PATCH] Cleanup: shuffle new() hack for SGI into compat. --- compat/os/sgi.h | 8 ++++++++ include/util.h | 9 --------- 2 files changed, 8 insertions(+), 9 deletions(-) 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 -- 2.47.2