Commit 122123c4 authored by Linus Torvalds's avatar Linus Torvalds

Make <linux/compiler.h> a bit more palatable to

user program inclusion.

It's still wrong to include kernel headers from
user programs. Oh, well.
parent 11c975e5
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
# define __kernel # define __kernel
#endif #endif
#ifdef __KERNEL__
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#if __GNUC__ > 3 #if __GNUC__ > 3
# include <linux/compiler-gcc+.h> /* catch-all for GCC 4, 5, etc. */ # include <linux/compiler-gcc+.h> /* catch-all for GCC 4, 5, etc. */
...@@ -106,4 +108,6 @@ ...@@ -106,4 +108,6 @@
(typeof(ptr)) (__ptr + (off)); }) (typeof(ptr)) (__ptr + (off)); })
#endif #endif
#endif /* __KERNEL__ */
#endif /* __LINUX_COMPILER_H */ #endif /* __LINUX_COMPILER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment