From 430e7fb18104aeacbc69c452e36966bcce390760 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 13 Mar 2021 21:25:21 +0100 Subject: [PATCH] LibC: Rename feclearexcept{s,} This will also help with making ports compile again :D https://github.com/SerenityOS/serenity/pull/5762#issuecomment-798779561 --- Userland/Libraries/LibC/fenv.cpp | 2 +- Userland/Libraries/LibC/fenv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibC/fenv.cpp b/Userland/Libraries/LibC/fenv.cpp index 4116ac2270..3d84cbc48b 100644 --- a/Userland/Libraries/LibC/fenv.cpp +++ b/Userland/Libraries/LibC/fenv.cpp @@ -177,7 +177,7 @@ int fesetround(int rounding_mode) return 0; } -int feclearexcepts(int exceptions) +int feclearexcept(int exceptions) { exceptions &= FE_ALL_EXCEPT; diff --git a/Userland/Libraries/LibC/fenv.h b/Userland/Libraries/LibC/fenv.h index ef23ce9e84..11a11d9fe4 100644 --- a/Userland/Libraries/LibC/fenv.h +++ b/Userland/Libraries/LibC/fenv.h @@ -70,7 +70,7 @@ typedef uint16_t fexcept_t; int fegetexceptflag(fexcept_t*, int exceptions); int fesetexceptflag(const fexcept_t*, int exceptions); -int feclearexcepts(int exceptions); +int feclearexcept(int exceptions); int fetestexcept(int exceptions); int feraiseexcept(int exceptions);