Re: double format and xdr
>So what happens is this: the double is always word-swaped when it comes out
>of xdr_double. When I xchange the higher and lower 32bit every time, the
Please try this patch.
p.
1999-10-10 Philip Blundell <philb@gnu.org>
* sunrpc/xdr_float.c (LSW): Depend on __FLOAT_WORD_ORDER not
__BYTE_ORDER.
Index: xdr_float.c
===================================================================
RCS file: /cvs/glibc/libc/sunrpc/xdr_float.c,v
retrieving revision 1.6
diff -u -p -r1.6 xdr_float.c
--- xdr_float.c 1997/05/21 01:15:27 1.6
+++ xdr_float.c 1999/10/10 11:59:16
@@ -52,7 +52,7 @@ static char sccsid[] = "@(#)xdr_float.c
* This routine works on Suns (Sky / 68000's) and Vaxen.
*/
-#define LSW (__BYTE_ORDER == __BIG_ENDIAN)
+#define LSW (__FLOAT_WORD_ORDER == __BIG_ENDIAN)
#ifdef vax
Reply to: