]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_generic/crc32.c
Merge branch 'master' of git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / lib_generic / crc32.c
index 468b3979ab1ffa9f9f87891147c932e3fb0fb61f..27335a3ed9095b19d533c33a742fd752935d4640 100644 (file)
@@ -163,7 +163,7 @@ const uint32_t * ZEXPORT get_crc_table()
 #endif
 
 /* ========================================================================= */
-# ifdef __LITTLE_ENDIAN
+# if __BYTE_ORDER == __LITTLE_ENDIAN
 #  define DO_CRC(x) crc = tab[(crc ^ (x)) & 255] ^ (crc >> 8)
 # else
 #  define DO_CRC(x) crc = tab[((crc >> 24) ^ (x)) & 255] ^ (crc << 8)