From: Mike Frysinger Date: Thu, 9 Jul 2009 17:34:17 +0000 (-0400) Subject: xdr_float build failure on some systems X-Git-Tag: libtirpc-0-2-1-rc3~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2689de344a020332a6787bdf46e6af39e804aad3;p=libtirpc xdr_float build failure on some systems Reworked the #ifdefs in xdr_float.c to work on newer architectures Signed-off-by: Steve Dickson --- 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 -#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 +#define IEEEFP + #endif /* vax */ bool_t