projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5f7409
)
Use static inline rather than extern inline/inline
author
Ian Lynagh
<igloo@earth.li>
Mon, 5 Feb 2007 20:36:28 +0000
(20:36 +0000)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/include/HsBase.h
b/include/HsBase.h
index
fe8c0cd
..
161cf9d
100644
(file)
--- 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