diff options
author | Rodolfo Giometti <giometti@linux.it> | 2007-06-06 10:08:14 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@pollux.denx.de> | 2007-06-06 10:08:14 +0200 |
commit | 18135125f909948b85d1d6881ab4ac0efb4a1c58 (patch) | |
tree | 95d05ba3db64b5652665889ae2643046b40d0d36 /drivers | |
parent | a81d1c0b85b13e9d45f2d87de96a51a6e0ef0f82 (diff) | |
download | u-boot-midas-18135125f909948b85d1d6881ab4ac0efb4a1c58.tar.gz u-boot-midas-18135125f909948b85d1d6881ab4ac0efb4a1c58.tar.bz2 u-boot-midas-18135125f909948b85d1d6881ab4ac0efb4a1c58.zip |
Files include/linux/byteorder/{big,little}_endian.h define
__BIG_ENDIAN and __LITTLE_ENDIAN.
Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usbtty.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usbtty.c b/drivers/usbtty.c index d41a00b8cf..a3b50131df 100644 --- a/drivers/usbtty.c +++ b/drivers/usbtty.c @@ -381,12 +381,12 @@ static void str2wide (char *str, u16 * wide) { int i; for (i = 0; i < strlen (str) && str[i]; i++){ - #if defined(__LITTLE_ENDIAN__) + #if defined(__LITTLE_ENDIAN) wide[i] = (u16) str[i]; - #elif defined(__BIG_ENDIAN__) + #elif defined(__BIG_ENDIAN) wide[i] = ((u16)(str[i])<<8); #else - #error "__LITTLE_ENDIAN__ or __BIG_ENDIAN__ undefined" + #error "__LITTLE_ENDIAN or __BIG_ENDIAN undefined" #endif } } |