From: Rodolfo Giometti Date: Wed, 6 Jun 2007 08:08:14 +0000 (+0200) Subject: Files include/linux/byteorder/{big,little}_endian.h define X-Git-Tag: v1.3.0-rc1~19^2~20^2~12^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18135125f909948b85d1d6881ab4ac0efb4a1c58;p=u-boot Files include/linux/byteorder/{big,little}_endian.h define __BIG_ENDIAN and __LITTLE_ENDIAN. Signed-off-by: Rodolfo Giometti --- 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 } }