diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-10-10 22:03:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-10-10 22:03:23 +0000 |
commit | 05ddbd26a5e752cb076b39a59d4da58b6fe3d365 (patch) | |
tree | 4f2a97133c5411a7e18f9f3ad544f0ae71df284c /lib | |
parent | 77e4c85748817196fb00ee12fcd1b0698b7a2106 (diff) |
Teach'em about cpus in spandex
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/rpc/xdr_float.c | 4 | ||||
-rw-r--r-- | lib/libc/stdlib/strtod.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/rpc/xdr_float.c b/lib/libc/rpc/xdr_float.c index 40187f7118a..22626c1b242 100644 --- a/lib/libc/rpc/xdr_float.c +++ b/lib/libc/rpc/xdr_float.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr_float.c,v 1.15 2005/08/08 08:05:36 espie Exp $ */ +/* $OpenBSD: xdr_float.c,v 1.16 2006/10/10 22:03:21 miod Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for * unrestricted use provided that this legend is included on all tape @@ -52,7 +52,7 @@ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \ defined(__arm__) || defined(__powerpc__) || defined(__m88k__) || \ - defined(__hppa__) || defined(__x86_64__) + defined(__hppa__) || defined(__x86_64__) || defined(__sh__) #include <machine/endian.h> #define IEEEFP #endif diff --git a/lib/libc/stdlib/strtod.c b/lib/libc/stdlib/strtod.c index 3081cb5cc72..924d4641875 100644 --- a/lib/libc/stdlib/strtod.c +++ b/lib/libc/stdlib/strtod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strtod.c,v 1.23 2006/10/01 11:36:33 otto Exp $ */ +/* $OpenBSD: strtod.c,v 1.24 2006/10/10 22:03:22 miod Exp $ */ /**************************************************************** * * The author of this software is David M. Gay. @@ -92,7 +92,8 @@ #if defined(__m68k__) || defined(__sparc__) || defined(__i386__) || \ defined(__mips__) || defined(__ns32k__) || defined(__alpha__) || \ defined(__powerpc__) || defined(__m88k__) || defined(__hppa__) || \ - defined(__x86_64__) || (defined(__arm__) && defined(__VFP_FP__)) + defined(__x86_64__) || (defined(__arm__) && defined(__VFP_FP__)) || \ + defined(__sh__) #include <sys/types.h> #if BYTE_ORDER == BIG_ENDIAN #define IEEE_BIG_ENDIAN @@ -201,8 +202,7 @@ extern "C" { #if defined(IEEE_LITTLE_ENDIAN) + defined(IEEE_BIG_ENDIAN) + defined(VAX) + \ defined(IBM) != 1 -Exactly one of IEEE_LITTLE_ENDIAN IEEE_BIG_ENDIAN, VAX, or -IBM should be defined. +#error Exactly one of IEEE_LITTLE_ENDIAN IEEE_BIG_ENDIAN, VAX, or IBM should be defined. #endif typedef union { |