Skip to contentSkip to conversation

usb: fix build for big-endian platform

PATCH New Antony Pavlov 1 participant 1 message Feb 28, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: fix build for big-endian platform

The problem was introduced in

commit 51885a7d7321c3e6395c36bc4fe8dde7e78cf562
Author: Sascha Hauer <[email protected]>
Date: Thu Jun 28 09:56:23 2012 +0200

Change byte order detection mechanism to kernel style

---
 include/usb/usb.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/usb/usb.h +1 -1
index 4649ee2..afccf70 100644
@@ -270,7 +270,7 @@ void usb_rescan(void);
 #ifdef __LITTLE_ENDIAN
 # define swap_16(x) (x)
 # define swap_32(x) (x)
-#elif defined BIG_ENDIAN
+#elif defined __BIG_ENDIAN
 # define swap_16(x) __swap_16(x)
 # define swap_32(x) __swap_32(x)
 #else
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox