diff options
author | millert <> | 2002-02-19 19:39:38 +0000 |
---|---|---|
committer | millert <> | 2002-02-19 19:39:38 +0000 |
commit | 0be1f7d80eff8e3e86b037958be3ab5217ce9b59 (patch) | |
tree | 9e6b3b31919b853c473f13c35c4878ac3aef84ab /src/lib/libc/stdlib/strtod.c | |
parent | 97ec74faebf84f0ecbbf3706ec05647d012003c9 (diff) | |
download | openbsd-0be1f7d80eff8e3e86b037958be3ab5217ce9b59.tar.gz openbsd-0be1f7d80eff8e3e86b037958be3ab5217ce9b59.tar.bz2 openbsd-0be1f7d80eff8e3e86b037958be3ab5217ce9b59.zip |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
Diffstat (limited to 'src/lib/libc/stdlib/strtod.c')
-rw-r--r-- | src/lib/libc/stdlib/strtod.c | 5 |
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) |
93 | static char *rcsid = "$OpenBSD: strtod.c,v 1.14 2001/07/09 06:57:45 deraadt Exp $"; | 93 | static 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 */ |