mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 21:51:03 +03:00
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.
This commit is contained in:
parent
3aaf7bf222
commit
c58e2a766b
1 changed files with 2 additions and 0 deletions
|
@ -21,8 +21,10 @@
|
||||||
|
|
||||||
#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 `...`
|
#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 `...`
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#ifndef _MSC_VER // C:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt\corecrt_math.h(93): Error: reinterpretation through overlapped field `f` is not allowed in CTFE
|
||||||
float x = NAN;
|
float x = NAN;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _MSC_VER // setjmp.h(51): Error: missing tag `identifier` after `struct
|
#ifndef _MSC_VER // setjmp.h(51): Error: missing tag `identifier` after `struct
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue