mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
[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
This commit is contained in:
parent
7a3fdf292f
commit
dce1331016
2 changed files with 4 additions and 0 deletions
|
@ -65,10 +65,12 @@
|
|||
#ifndef __DMC__ // no tgmath.h
|
||||
#ifndef _MSC_VER // C:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt\tgmath.h(33): Error: no type for declarator before `)`
|
||||
#ifndef __APPLE__ // /Applications/Xcode-14.2.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/tgmath.h(39): Error: named parameter required before `...`
|
||||
#if !(defined(__linux__) && defined(__aarch64__)) // /tmp/clang/lib/clang/15.0.3/include/tgmath.h(34): Error: named parameter required before `...`
|
||||
#include <tgmath.h>
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __DMC__
|
||||
#ifndef __linux__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue