| 1 | Fixes build with GCC 5 and later.
|
| 2 | Patch from <https://aur.archlinux.org/cgit/aur.git/tree/hsbase_inline.patch?h=hugs>.
|
| 3 |
|
| 4 | diff --git a/packages/base/include/HsBase.h b/packages/base/include/HsBase.h
|
| 5 | index aa1a7fb..78d5b46 100644
|
| 6 | |
| 7 | |
| 8 | @@ -217,15 +217,7 @@ StgWord64 stg_integerToWord64 (StgInt sa, StgByteArray /* Really: mp_limb_t* */
|
| 9 | when compiling to native code.
|
| 10 | -------------------------------------------------------------------------- */
|
| 11 |
|
| 12 | -#ifndef INLINE
|
| 13 | -# if defined(_MSC_VER)
|
| 14 | -# define INLINE extern __inline
|
| 15 | -# elif defined(__GNUC__)
|
| 16 | -# define INLINE extern inline
|
| 17 | -# else
|
| 18 | -# define INLINE inline
|
| 19 | -# endif
|
| 20 | -#endif
|
| 21 | +#define INLINE inline
|
| 22 |
|
| 23 | INLINE int __hscore_get_errno(void) { return errno; }
|
| 24 | INLINE void __hscore_set_errno(int e) { errno = e; }
|