diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-09 13:34:17 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-07-09 13:34:17 -0400 |
commit | 2689de344a020332a6787bdf46e6af39e804aad3 (patch) | |
tree | dc4afb1d0d800cad5b0cbd87997a59bc251e6a66 | |
parent | 5ccb6c5876454f5ed03aeee5a80b7cead35d29c7 (diff) | |
download | ti-rpc-2689de344a020332a6787bdf46e6af39e804aad3.tar.gz |
xdr_float build failure on some systems
Reworked the #ifdefs in xdr_float.c to work on
newer architectures
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/xdr_float.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/xdr_float.c b/src/xdr_float.c index 4c5b28a..114b192 100644 --- a/src/xdr_float.c +++ b/src/xdr_float.c @@ -54,16 +54,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(__arm32__) || defined(__ppc__) || defined(__ia64__) || \ - defined(__arm26__) || defined(__sparc64__) || defined(__amd64__) || \ - defined(__powerpc__) || defined(__s390__) || defined(__arm__) || \ - defined(__sh__) -#include <bits/endian.h> -#define IEEEFP -#endif - #if defined(__vax__) /* What IEEE single precision floating point looks like on a Vax */ @@ -93,6 +83,11 @@ static struct sgl_limits { {{ 0x0, 0x0, 0x0, 0x0 }, /* Min Vax */ { 0x0, 0x0, 0x0 }} /* Min IEEE */ }; +#else + +#include <bits/endian.h> +#define IEEEFP + #endif /* vax */ bool_t |