summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2002-08-28 00:53:09 -0700
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-08-28 00:53:09 -0700
commit93a3177fa3e97d3cf5901fe1d61c98cf7217f036 (patch)
tree21ca77bd3167c0e756f27420f97507563aef3702 /include/linux/kernel.h
parentaad4ad15f65653edfaa0e55085ec3eb0f39e84cd (diff)
Add some fascist code to trap __FUNCTION__ pasting, fix up
some more pasters..
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r--include/linux/kernel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 022587afdc46..95965970e49b 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -191,4 +191,10 @@ struct sysinfo {
};
#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
+
+/* Trap pasters of __FUNCTION__ at compile-time */
+#if __GNUC__ > 2 || __GNUC_MINOR__ >= 95
+#define __FUNCTION__ (__func__)
+#endif
+
#endif