From 762707e367b3b7740fa713067a9c1c2dde998fc0 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Mon, 5 Feb 2007 20:36:28 +0000 Subject: [PATCH] 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). --- include/HsBase.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 1.7.10.4