[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] bswap32 for ColdFire



Hello.

Here is a MiNTLib patch for bswap32() for ColdFire. This fixes the compilation of xz for ColdFire.

Please commit.

--
Vincent Rivière
diff -aurN -x CVS mintlib.orig/include/bits/byteswap.h mintlib/include/bits/byteswap.h
--- mintlib.orig/include/bits/byteswap.h	2009-05-17 18:13:06.187500000 +0200
+++ mintlib/include/bits/byteswap.h	2013-11-16 12:11:18.421875000 +0100
@@ -32,7 +32,7 @@
   ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >>  8) | \
    (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))
 
-#if defined __GNUC__ && __GNUC__ >= 2
+#if defined __GNUC__ && __GNUC__ >= 2 && !defined(__mcoldfire__)
 # define __bswap_32(x) \
   __extension__							\
   ({ unsigned int __bswap_32_v;					\