Fix MacOS X build: don't believe __GNUC_GNU_INLINE__ on MacOS X
authorSimon Marlow <marlowsd@gmail.com>
Thu, 18 Sep 2008 11:28:56 +0000 (11:28 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 18 Sep 2008 11:28:56 +0000 (11:28 +0000)
includes/Stg.h

index 6cbfeb4..32e8380 100644 (file)
 // __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