Hey,

bttv-driver.c uses the following to check for byteorder:

#if defined(__sparc__) || defined(__powerpc__) || defined(__hppa__)
static unsigned int bigendian=1;
#else
static unsigned int bigendian=0;
#endif

Is there any reason why asm/byteorder.h is not used (__LITTLE_ENDIAN and
__BIG_ENDIAN)? With that, code would look like this (example):

#if defined(__BIG_ENDIAN)
static unsigned int bigendian=1;
#elif defined(__LITTLE_ENDIAN)
static unsigned int bigendian=0;
#else
#error "Unknown byte order!"
#endif

Ronald

-- 
Ronald Bultje <[EMAIL PROTECTED]>
Linux Video/Multimedia developer



--
video4linux-list mailing list
Unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list

Reply via email to