diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2013-03-01 00:05:02 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-03 16:27:53 +0100 |
commit | 14743045fb31bd1d2d4b7eb2ccd2e956b44b01bd (patch) | |
tree | 814d2ea843e43a73085cb622882e266f611f5b2d /include/usb/usb.h | |
parent | ca9a1827dc08ce488e2ae7723cec5d03207fdaa8 (diff) | |
download | barebox-14743045fb31bd1d2d4b7eb2ccd2e956b44b01bd.tar.gz barebox-14743045fb31bd1d2d4b7eb2ccd2e956b44b01bd.tar.xz |
usb: fix build for big-endian platform
The problem was introduced in
commit 51885a7d7321c3e6395c36bc4fe8dde7e78cf562
Author: Sascha Hauer <s.hauer@pengutronix.de>
Date: Thu Jun 28 09:56:23 2012 +0200
Change byte order detection mechanism to kernel style
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/usb.h')
-rw-r--r-- | include/usb/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h index 4649ee2a9e..afccf706d7 100644 --- a/include/usb/usb.h +++ b/include/usb/usb.h @@ -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 |