summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/strtod.c')
-rw-r--r--src/lib/libc/stdlib/strtod.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/strtod.c b/src/lib/libc/stdlib/strtod.c
index 44cc369b16..ce7ce9fe56 100644
--- a/src/lib/libc/stdlib/strtod.c
+++ b/src/lib/libc/stdlib/strtod.c
@@ -90,7 +90,7 @@
90 */ 90 */
91 91
92#if defined(LIBC_SCCS) && !defined(lint) 92#if defined(LIBC_SCCS) && !defined(lint)
93static char *rcsid = "$OpenBSD: strtod.c,v 1.14 2001/07/09 06:57:45 deraadt Exp $"; 93static char *rcsid = "$OpenBSD: strtod.c,v 1.15 2002/02/19 19:39:37 millert Exp $";
94#endif /* LIBC_SCCS and not lint */ 94#endif /* LIBC_SCCS and not lint */
95 95
96#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ 96#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
@@ -153,7 +153,6 @@ extern void *MALLOC(size_t);
153#include "errno.h" 153#include "errno.h"
154 154
155#ifdef Bad_float_h 155#ifdef Bad_float_h
156#undef __STDC__
157#ifdef IEEE_BIG_ENDIAN 156#ifdef IEEE_BIG_ENDIAN
158#define IEEE_ARITHMETIC 157#define IEEE_ARITHMETIC
159#endif 158#endif
@@ -1429,7 +1428,7 @@ strtod
1429 if (e1 > DBL_MAX_10_EXP) { 1428 if (e1 > DBL_MAX_10_EXP) {
1430 ovfl: 1429 ovfl:
1431 errno = ERANGE; 1430 errno = ERANGE;
1432#ifdef __STDC__ 1431#ifndef Bad_float_h
1433 value(rv) = HUGE_VAL; 1432 value(rv) = HUGE_VAL;
1434#else 1433#else
1435 /* Can't trust HUGE_VAL */ 1434 /* Can't trust HUGE_VAL */