aboutsummaryrefslogtreecommitdiff
path: root/src/lib9
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9')
-rw-r--r--src/lib9/fmt/fltfmt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib9/fmt/fltfmt.c b/src/lib9/fmt/fltfmt.c
index 57839ce9..68145ee6 100644
--- a/src/lib9/fmt/fltfmt.c
+++ b/src/lib9/fmt/fltfmt.c
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <errno.h>
#include <stdarg.h>
+#include <ctype.h>
#include <fmt.h>
#include "plan9.h"
#include "fmt.h"
@@ -142,15 +143,15 @@ xdtoa(Fmt *fmt, char *s2, double f)
prec = fmt->prec;
if(prec > FDIGIT)
prec = FDIGIT;
- if(isNaN(f)) {
+ if(__isNaN(f)) {
strcpy(s2, "NaN");
return;
}
- if(isInf(f, 1)) {
+ if(__isInf(f, 1)) {
strcpy(s2, "+Inf");
return;
}
- if(isInf(f, -1)) {
+ if(__isInf(f, -1)) {
strcpy(s2, "-Inf");
return;
}