summaryrefslogtreecommitdiffstats
path: root/include/linux/compiler-gcc3.h
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@mindspring.com>2007-10-16 23:26:11 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 08:42:47 -0700
commit94f582f82a85a941678c80c60a3baa8187c74217 (patch)
tree83653a3a93b9291d658025a800d5fbed00ee484c /include/linux/compiler-gcc3.h
parenta36a151e79be1562d6fea3ec4698f23e7102a26f (diff)
downloadlinux-94f582f82a85a941678c80c60a3baa8187c74217.tar.gz
linux-94f582f82a85a941678c80c60a3baa8187c74217.tar.bz2
linux-94f582f82a85a941678c80c60a3baa8187c74217.zip
Force erroneous inclusions of compiler-*.h files to be errors
Replace worthless comments with actual preprocessor errors when including the wrong versions of the compiler.h files. [akpm@linux-foundation.org: make it work] Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/compiler-gcc3.h')
-rw-r--r--include/linux/compiler-gcc3.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc3.h b/include/linux/compiler-gcc3.h
index a9e2863c2dbf..2d8c0f48f55e 100644
--- a/include/linux/compiler-gcc3.h
+++ b/include/linux/compiler-gcc3.h
@@ -1,4 +1,6 @@
-/* Never include this file directly. Include <linux/compiler.h> instead. */
+#ifndef __LINUX_COMPILER_H
+#error "Please don't include <linux/compiler-gcc3.h> directly, include <linux/compiler.h> instead."
+#endif
/* These definitions are for GCC v3.x. */
#include <linux/compiler-gcc.h>