From ba1d2fd1914971cd2f9c351670805ea512b6a281 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Thu, 18 Sep 2008 11:28:56 +0000 Subject: [PATCH] Fix MacOS X build: don't believe __GNUC_GNU_INLINE__ on MacOS X --- includes/Stg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/Stg.h b/includes/Stg.h index 6cbfeb4..32e8380 100644 --- a/includes/Stg.h +++ b/includes/Stg.h @@ -95,7 +95,11 @@ // __attribute__((gnu_inline)). So when we don't have this, we use // ordinary static inline. // -#if defined(__GNUC_GNU_INLINE__) +// Apple's gcc defines __GNUC_GNU_INLINE__ without providing +// gnu_inline, so we exclude MacOS X and fall through to the safe +// version. +// +#if defined(__GNUC_GNU_INLINE__) && !defined(__APPLE__) # if defined(KEEP_INLINES) # define EXTERN_INLINE inline # else -- 1.7.10.4