From: Ian Lynagh Date: Mon, 5 Feb 2007 20:36:28 +0000 (+0000) Subject: Use static inline rather than extern inline/inline X-Git-Url: http://git.megacz.com/?p=ghc-base.git;a=commitdiff_plain;h=762707e367b3b7740fa713067a9c1c2dde998fc0 Use static inline rather than extern inline/inline 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). --- diff --git a/include/HsBase.h b/include/HsBase.h index fe8c0cd..161cf9d 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -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