Use static inline rather than extern inline/inline
authorIan Lynagh <igloo@earth.li>
Mon, 5 Feb 2007 20:36:28 +0000 (20:36 +0000)
committerIan Lynagh <igloo@earth.li>
Mon, 5 Feb 2007 20:36:28 +0000 (20:36 +0000)
I understand this is more portable, and it also fixes warnings when
C things we are wrapping are themselves static inlines (which FD_ISSET
is on ppc OS X).

include/HsBase.h

index fe8c0cd..161cf9d 100644 (file)
@@ -226,10 +226,8 @@ StgWord64 stg_integerToWord64 (StgInt sa, StgByteArray /* Really: mp_limb_t* */
 #ifndef INLINE
 # if defined(_MSC_VER)
 #  define INLINE extern __inline
-# elif defined(__GNUC__)
-#  define INLINE extern inline
 # else
-#  define INLINE inline
+#  define INLINE static inline
 # endif
 #endif