aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmt/strtod.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-12-26 21:50:14 +0000
committerrsc <devnull@localhost>2004-12-26 21:50:14 +0000
commite5aa96acbf9107cd78f2536364c36f9a15751313 (patch)
tree9c198bb62564c433c28d2de81a5fb6b782f39903 /src/lib9/fmt/strtod.c
parent5c8a0421712a471a00dbf78f7ea054b366ba471b (diff)
downloadplan9port-e5aa96acbf9107cd78f2536364c36f9a15751313.tar.gz
plan9port-e5aa96acbf9107cd78f2536364c36f9a15751313.tar.bz2
plan9port-e5aa96acbf9107cd78f2536364c36f9a15751313.zip
clean up for unix port
Diffstat (limited to 'src/lib9/fmt/strtod.c')
-rw-r--r--src/lib9/fmt/strtod.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib9/fmt/strtod.c b/src/lib9/fmt/strtod.c
index 685b7fae..5939dd90 100644
--- a/src/lib9/fmt/strtod.c
+++ b/src/lib9/fmt/strtod.c
@@ -17,15 +17,9 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include "plan9.h"
#include "fmt.h"
-#include "nan.h"
-
-#ifndef nelem
-#define nelem(x) (sizeof(x)/sizeof *(x))
-#endif
-#define nil ((void*)0)
-#define ulong _fmtulong
-typedef unsigned long ulong;
+#include "fmtdef.h"
static ulong
umuldiv(ulong a, ulong b, ulong c)