mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 13:40:11 +03:00
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.
This commit is contained in:
parent
51816cd01d
commit
3070fc288a
2 changed files with 1 additions and 3 deletions
|
@ -19,12 +19,10 @@
|
|||
#include <limits.h>
|
||||
#include <locale.h>
|
||||
|
||||
#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>
|
||||
#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;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER // setjmp.h(51): Error: missing tag `identifier` after `struct
|
||||
#include <setjmp.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue