summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/strtod.c
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2004-02-01 07:11:24 +0000
committerdrahn <drahn@openbsd.org>2004-02-01 07:11:24 +0000
commit993739be56893075c25db4e28349d1f57f3ff3e2 (patch)
treebefcf0f6a9ac9fb936daaff8e1181eb29d6adb78 /lib/libc/stdlib/strtod.c
parentremove prototypes for non-existant functions. (diff)
downloadwireguard-openbsd-993739be56893075c25db4e28349d1f57f3ff3e2.tar.xz
wireguard-openbsd-993739be56893075c25db4e28349d1f57f3ff3e2.zip
s/arm32/arm/ with VFP bit to match netbsd.
Diffstat (limited to 'lib/libc/stdlib/strtod.c')
-rw-r--r--lib/libc/stdlib/strtod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c
index 55c455892ab..5899bc1ee58 100644
--- a/lib/libc/stdlib/strtod.c
+++ b/lib/libc/stdlib/strtod.c
@@ -90,7 +90,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strtod.c,v 1.17 2004/01/28 01:51:39 mickey Exp $";
+static char *rcsid = "$OpenBSD: strtod.c,v 1.18 2004/02/01 07:11:24 drahn Exp $";
#endif /* LIBC_SCCS and not lint */
#if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \
@@ -105,7 +105,7 @@ static char *rcsid = "$OpenBSD: strtod.c,v 1.17 2004/01/28 01:51:39 mickey Exp $
#endif
#endif
-#ifdef __arm32__
+#if defined(__arm__) && !defined(_VFP_FP__)
/*
* Although the CPU is little endian the FP has different
* byte and word endianness. The byte order is still little endian
@@ -239,7 +239,7 @@ typedef union {
* An alternative that might be better on some machines is
* #define Storeinc(a,b,c) (*a++ = b << 16 | c & 0xffff)
*/
-#if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) + defined(__arm32__)
+#if defined(IEEE_LITTLE_ENDIAN) + defined(VAX) + defined(__arm__)
#define Storeinc(a,b,c) (((unsigned short *)a)[1] = (unsigned short)b, \
((unsigned short *)a)[0] = (unsigned short)c, a++)
#else