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:
parent
2ee39ed5f0
commit
5208bc05ce
Notes:
sideshowbarker
2024-07-18 10:05:16 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/5208bc05ce2 Pull-request: https://github.com/SerenityOS/serenity/pull/8470 Reviewed-by: https://github.com/Dexesttp Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gunnarbeutner ✅
1 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,8 @@
|
|||
|
||||
#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 DECIMAL_DIG 21
|
||||
|
|
Loading…
Add table
Reference in a new issue