]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Files include/linux/byteorder/{big,little}_endian.h define
authorRodolfo Giometti <giometti@linux.it>
Wed, 6 Jun 2007 08:08:14 +0000 (10:08 +0200)
committerMarkus Klotzbuecher <mk@pollux.denx.de>
Wed, 6 Jun 2007 08:08:14 +0000 (10:08 +0200)
__BIG_ENDIAN and __LITTLE_ENDIAN.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>
drivers/usbtty.c

index d41a00b8cf4ed2c44f161d0277873e5f7076005f..a3b50131dfc1bc47c20f58a3927364e6dd12c6f3 100644 (file)
@@ -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
        }
 }