From 7e8263e58924d718c6f14fd4e0ecddbdb14304bd Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 8 Feb 2020 12:57:51 -0500 Subject: [PATCH] libroot/stdio: Use the proper macros for isnan/isinf. --- .../libroot/posix/glibc/stdio-common/printf_fphex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/libroot/posix/glibc/stdio-common/printf_fphex.c b/src/system/libroot/posix/glibc/stdio-common/printf_fphex.c index b68c4e85fd..e38f6510c4 100644 --- a/src/system/libroot/posix/glibc/stdio-common/printf_fphex.c +++ b/src/system/libroot/posix/glibc/stdio-common/printf_fphex.c @@ -54,7 +54,7 @@ int __printf_fphex (FILE *fp, const struct printf_info *info, # define PAD(f, c, n) __printf_pad (f, c, n) ssize_t __printf_pad __P ((FILE *, char pad, int n)); /* In vfprintf.c. */ #endif /* USE_IN_LIBIO */ - + /* Macros for doing the actual output. */ #define outchar(ch) \ @@ -90,7 +90,7 @@ ssize_t __printf_pad __P ((FILE *, char pad, int n)); /* In vfprintf.c. */ #ifndef MIN # define MIN(a,b) ((a)<(b)?(a):(b)) #endif - + #if defined(__x86_64__) || defined(__i386__) @@ -253,7 +253,7 @@ __printf_fphex (FILE *fp, fpnum.ldbl.d = *(const long double *) args[0]; /* Check for special values: not a number or infinity. */ - if (isnanl (fpnum.ldbl.d)) + if (isnan (fpnum.ldbl.d)) { if (isupper (info->spec)) { @@ -269,7 +269,7 @@ __printf_fphex (FILE *fp, } else { - if (isinfl (fpnum.ldbl.d)) + if (isinf (fpnum.ldbl.d)) { if (isupper (info->spec)) {