Commit graph

12 commits

Author SHA1 Message Date
drpriver
3070fc288a
ImportC: undefined identifier _Float16 (#21184)
Fixes: https://github.com/dlang/dmd/issues/21183

The previous MR put the macro in a `#if linux` which meant it
didn't actually solve the problem of being unable to
`#include <math.h>` on macos. So put it in a better spot.

Also enable the test that includes that header for macos so that
it stays solved.
2025-04-09 14:05:05 +08:00
Martin Kinkelin
c58e2a766b compilable/stdcheaders.c: Work around unsupported NAN in new WinSDK headers
GitHub Actions upgraded the WinSDK in the latest image, and its NAN is
apparently not supported by ImportC anymore, breaking CI.
2024-11-16 22:08:33 +01:00
Brian Callahan
a3eb99191d Fix Bugzilla 24598 2024-06-11 07:20:29 +02:00
Martin Kinkelin
47771d49fd Get rid of obsolete DMC special cases 2024-05-25 19:34:44 +02:00
Andrei Horodniceanu
eb6f23f62c stdcheaders.c: Don't include signal.h on aarch64 linux due to int128
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
2024-04-03 18:04:30 +02:00
Walter Bright
e5d742b92e
fix Issue 23411 - ImportC: undefined identifier __builtin_nanf (#15918) 2023-12-19 16:33:10 +02:00
Martin Kinkelin
dce1331016
[stable] Fix compilable/stdcheaders.c for Linux AArch64 (#15320)
* Linux AArch64: Don't define _Float128/__float128 in importc.h

For LDC CI, on Ubuntu 20.04, this fixed:
```
/usr/include/aarch64-linux-gnu/bits/floatn.h(80): Error: illegal combination of type specifiers
/usr/include/aarch64-linux-gnu/bits/floatn.h(80): Error: illegal type combination
```
when testing `compilable/stdcheaders.c`.

* Linux AArch64: Don't include tgmath.h in compilable/stdcheaders.c
2023-06-14 08:42:57 +03:00
Walter Bright
5b1702b020 ImportC: #include <tgmath.h> on FreeBSD 2023-03-26 11:00:38 +02:00
Walter Bright
ab62befd47
Importc: FreeBSD compiles stdatomic.h (#15041) 2023-03-25 21:49:00 -07:00
Walter Bright
643a0b847d __FreeBSD__ compiles fenv.h 2023-03-25 11:30:42 +01:00
Walter Bright
e46f623222
complex.h should compile with FreeBSD now (#15003) 2023-03-23 08:56:48 +02:00
Walter Bright
65465a64d8
ImportC: smoke test all C Standard .h files (#14810) 2023-02-20 21:52:02 -08:00