From cc6e7378d3f5473137e0c46d39173e6f60dcefda Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 14:57:46 -0500 Subject: update standards and safety checks --- src/stdlib/strtold.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/stdlib/strtold.c') diff --git a/src/stdlib/strtold.c b/src/stdlib/strtold.c index 5bb5bf63..43fc77bd 100644 --- a/src/stdlib/strtold.c +++ b/src/stdlib/strtold.c @@ -1,10 +1,9 @@ -#if 0 - #include #include #include #include #include +#include "_stdlib.h" /** convert string to floating-point **/ @@ -17,6 +16,8 @@ long double strtold(const char * restrict nptr, char ** restrict endptr) long double inf = INFINITY; long double nan = NAN; + SIGNAL_SAFE(0); + #include "_strtod.h" return ret; @@ -42,6 +43,3 @@ RETURN(CONSTANT(-HUGE_VALL), converted value too small) RETURN(VAR(a TYPE(long double)), the converted value) STDC(199901) */ - - -#endif -- cgit v1.2.1