Joakim Tjernlund b3b77c8cae endian: #define __BYTE_ORDER
Linux does not define __BYTE_ORDER in its endian header files which makes
some header files bend backwards to get at the current endian.  Lets
#define __BYTE_ORDER in big_endian.h/litte_endian.h to make it easier for
header files that are used in user space too.

In userspace the convention is that

  1. _both_ __LITTLE_ENDIAN and __BIG_ENDIAN are defined,
  2. you have to test for e.g. __BYTE_ORDER == __BIG_ENDIAN.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-05-25 08:07:02 -07:00
..
2010-05-17 12:18:30 +03:00
2010-05-05 09:11:10 -04:00
2010-02-01 14:00:30 +11:00
2009-09-08 17:53:04 -07:00
2009-12-10 20:08:15 -06:00
2008-08-18 21:40:03 +02:00
2008-08-04 13:18:17 +10:00
2010-05-17 12:18:23 +03:00
2010-05-17 12:18:21 +03:00
2010-05-17 12:18:58 +03:00
2010-03-01 12:36:06 -03:00
2010-05-17 12:18:55 +03:00
2010-05-17 12:18:34 +03:00
2009-12-09 17:09:33 +11:00
2010-05-05 09:11:10 -04:00
2010-05-05 09:11:10 -04:00
2009-10-30 17:21:28 +11:00
2010-03-05 03:04:08 -06:00
2010-03-05 03:04:08 -06:00
2010-05-17 12:18:43 +03:00
2009-04-07 15:18:58 +10:00
2009-12-09 17:10:37 +11:00
2010-05-05 09:11:10 -04:00
2010-03-05 03:04:08 -06:00
2008-10-15 11:31:54 +11:00
2010-05-25 08:07:02 -07:00
2008-09-06 19:30:15 +01:00
2009-04-01 08:59:16 -07:00
2009-08-28 14:24:10 +10:00
2010-03-12 15:52:32 -08:00