1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibC: Don't include fenv.h from float.h

This fixes a build issue where `compiler-rt` tried to declare its own
version of the `FE_*` macros, and included `float.h` in order to get the
constants. `compiler-rt` tried to declare these as an enum, and failed
with a syntax error when the constant's literal values were substituted.
This commit is contained in:
Daniel Bertalan 2021-07-05 20:18:12 +02:00 committed by Gunnar Beutner
parent 2ee39ed5f0
commit 5208bc05ce

View file

@ -7,7 +7,8 @@
#pragma once #pragma once
#include <fenv.h> // Defined in fenv.cpp, but we must not include fenv.h, so here's its prototype.
int fgetround();
#define FLT_RADIX 2 #define FLT_RADIX 2
#define DECIMAL_DIG 21 #define DECIMAL_DIG 21