diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-25 15:54:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2008-06-25 15:54:13 +0000 |
commit | 5e9d7b90f75e5f1a46bdbc21c48a036102d43f11 (patch) | |
tree | e9702dd9e2a948ed97c8e36d534679a8215146dd /lib/libc/rpc | |
parent | 26c0bf7cddcdb6ca92aa9c5b4c659dd0e3f1da85 (diff) |
Change a very long selective list of all architectures which do IEEE into
just handling the vax different (just vax for now, 'cause tahoe might even
be too legacy for Miod)
ok miod
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/xdr_float.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/libc/rpc/xdr_float.c b/lib/libc/rpc/xdr_float.c index 22626c1b242..f0dcaa28d2e 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.16 2006/10/10 22:03:21 miod Exp $ */ +/* $OpenBSD: xdr_float.c,v 1.17 2008/06/25 15:54:12 deraadt 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 @@ -49,14 +49,6 @@ * This routine works on machines with IEEE754 FP and Vaxen. */ -#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(__sh__) -#include <machine/endian.h> -#define IEEEFP -#endif - #ifdef __vax__ /* What IEEE single precision floating point looks like on a Vax */ @@ -86,7 +78,11 @@ static struct sgl_limits { {{ 0x0, 0x0, 0x0, 0x0 }, /* Min Vax */ { 0x0, 0x0, 0x0 }} /* Min IEEE */ }; -#endif /* __vax__ */ + +#else +#include <machine/endian.h> +#define IEEEFP +#endif bool_t xdr_float(XDR *xdrs, float *fp) |