* [parisc-linux] byteorder.h patch
@ 2003-07-08 17:03 LaMont Jones
0 siblings, 0 replies; only message in thread
From: LaMont Jones @ 2003-07-08 17:03 UTC (permalink / raw)
To: parisc-linux; +Cc: lamont, bdale
I guess I should have sent mail...
byteorder.h would try to use __u64 when it wasn't defined (__STRICT_ANSI__).
This is fixed in revision 1.7 of include/asm-parisc/byteorder.h.
lamont
Index: include/asm-parisc/byteorder.h
===================================================================
RCS file: /var/cvs/linux/include/asm-parisc/byteorder.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- include/asm-parisc/byteorder.h 8 Jul 2003 02:22:59 -0000 1.6
+++ include/asm-parisc/byteorder.h 8 Jul 2003 16:50:09 -0000 1.7
@@ -48,7 +48,8 @@
return x;
}
#define __arch__swab64(x) ___arch__swab64(x)
-#else
+#define __BYTEORDER_HAS_U64__
+#elif !defined(__STRICT_ANSI__)
static __inline__ __const__ __u64 ___arch__swab64(__u64 x)
{
__u32 t1 = (__u32) x;
@@ -57,12 +58,12 @@
___arch__swab32(t2);
return (((__u64) ___arch__swab32(t1) << 32) + ((__u64) ___arch__swab32(t2)));
}
+#define __arch__swab64(x) ___arch__swab64(x)
+#define __BYTEORDER_HAS_U64__
#endif
#define __arch__swab16(x) ___arch__swab16(x)
#define __arch__swab32(x) ___arch__swab32(x)
-#define __arch__swab64(x) ___arch__swab64(x)
-#define __BYTEORDER_HAS_U64__
#endif /* __GNUC__ */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-07-08 17:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-08 17:03 [parisc-linux] byteorder.h patch LaMont Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox