X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FStg.h;h=32e838090b76e93cd62d341bc13bad0accc7808c;hb=ba1d2fd1914971cd2f9c351670805ea512b6a281;hp=6cbfeb45e511ee412d3147dcf21cc673157a84bf;hpb=c55791e1381cfc1a3bddd6c182d32719d48471ce;p=ghc-hetmet.git 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