From 2c885734d00021ed214a94290eb479ee6f231188 Mon Sep 17 00:00:00 2001 From: rjones Date: Wed, 23 Jan 2008 13:19:57 +0000 Subject: [PATCH] Version 4.0.7 -- fixed builds on Mac. --- .cvsignore | 3 ++- configure.ac | 2 +- xdr_float.c | 13 ++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.cvsignore b/.cvsignore index ad29226..b71313e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -14,4 +14,5 @@ install-sh *.la *.lo libtool -stamp-h1 \ No newline at end of file +stamp-h1 +portablexdr-*.tar.gz diff --git a/configure.ac b/configure.ac index 9ad71b7..6c617a7 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(portablexdr, 4.0.6) +AC_INIT(portablexdr, 4.0.7) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) diff --git a/xdr_float.c b/xdr_float.c index bf6da27..eefcbee 100644 --- a/xdr_float.c +++ b/xdr_float.c @@ -91,8 +91,7 @@ xdr_float(xdrs, fp) register XDR *xdrs; register float *fp; { -#if !defined(mc68000) && !defined(sparc) && !defined(__CYGWIN32__) && !defined(__MINGW32__) && !defined(linux) - +#if defined(vax) struct ieee_single is; struct vax_single vs, *vsp; struct sgl_limits *lim; @@ -101,7 +100,7 @@ xdr_float(xdrs, fp) switch (xdrs->x_op) { case XDR_ENCODE: -#if defined(mc68000) || defined(sparc) || defined(__CYGWIN32__) || defined(__MINGW32__) || defined(linux) +#if !defined(vax) return (XDR_PUTLONG(xdrs, (long *)fp)); #else vs = *((struct vax_single *)fp); @@ -123,7 +122,7 @@ xdr_float(xdrs, fp) #endif case XDR_DECODE: -#if defined(mc68000) || defined(sparc) || defined(__CYGWIN32__) || defined(__MINGW32__) || defined(linux) +#if !defined(vax) return (XDR_GETLONG(xdrs, (long *)fp)); #else vsp = (struct vax_single *)fp; @@ -198,7 +197,7 @@ xdr_double(xdrs, dp) double *dp; { register long *lp; -#if !defined(mc68000) && !defined(sparc) && !defined(__CYGWIN32__) && !defined(__MINGW32__) && !defined(linux) +#if defined(vax) struct ieee_double id; struct vax_double vd; register struct dbl_limits *lim; @@ -208,7 +207,7 @@ xdr_double(xdrs, dp) switch (xdrs->x_op) { case XDR_ENCODE: -#if defined(mc68000) || defined(sparc) || defined(__CYGWIN32__) || defined(__MINGW32__) || defined(linux) +#if !defined(vax) lp = (long *)dp; #else vd = *((struct vax_double *)dp); @@ -240,7 +239,7 @@ xdr_double(xdrs, dp) #endif case XDR_DECODE: -#if defined(mc68000) || defined(sparc) || defined(__CYGWIN32__) || defined(__MINGW32__) || defined(linux) +#if !defined(vax) lp = (long *)dp; #if defined(__CYGWIN32__) || defined(__MINGW32__) return (XDR_GETLONG(xdrs, lp+1) && XDR_GETLONG(xdrs, lp)); -- 1.8.3.1