GCC-7.0 specific _Float128 type - cannot recognize
- Dominant language
- Haskell
- Stars
- 211
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
When compiling alsa-mixer Haskell library met this problem:
```
Building alsa-mixer-0.2.0.3...
Preprocessing library alsa-mixer-0.2.0.3...
c2hs: C header contains errors:
/usr/include/bits/floatn.h:73: (column 29) [ERROR] >>> Syntax error !
The symbol `;' does not fit here.
```
Lines that cause it:
```c
/* The remaining of this file provides support for older compilers. */
#if __HAVE_FLOAT128
/* The type _Float128 exists only since GCC 7.0. */
# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
typedef __float128 _Float128;
# endif
```
Attaching full header here
[floatn.h.zip](https://github.com/haskell/c2hs/files/1628012/floatn.h.zip)
Gentoo bug https://bugs.gentoo.org/644200
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.