Re: why do some header files check for ! __KERNEL__

2007-11-29 Thread Shreyansh Jain
Hi List, Robert P. J. Day crashcourse.ca> writes: > > > i'm curious about the fact that a small number of header files that > are exported to user space have preprocessor checks for *not* defined > __KERNEL__, as in: > > linux/acct.h:#if !defined(CONFIG_M68K) || !defined(__KERNEL__) > video/

why do some header files check for ! __KERNEL__

2007-11-27 Thread Robert P. J. Day
i'm curious about the fact that a small number of header files that are exported to user space have preprocessor checks for *not* defined __KERNEL__, as in: linux/acct.h:#if !defined(CONFIG_M68K) || !defined(__KERNEL__) video/edid.h:#if !defined(__KERNEL__) || defined(CONFIG_X86) it's obviou