summaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2003-01-02 08:01:36 +1100
committerPaul Mackerras <paulus@samba.org>2003-01-02 08:01:36 +1100
commit52daa1f418d104420b8e3cf7c4e2b9edeb3c3ca1 (patch)
tree2731da99a956944ecc6ccf9500a416743aae06ba /include/linux/compiler.h
parent40f576b5364c98919b0f913dec3f8c6d92e4ee0d (diff)
parent49b5e1f71b720f4c3290f586d9231a7cffcb6935 (diff)
Merge samba.org:/home/paulus/kernel/linux-2.5
into samba.org:/home/paulus/kernel/for-linus-ppc
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index f88889740949..99aab023173f 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -17,10 +17,9 @@
* Allow us to mark functions as 'deprecated' and have gcc emit a nice
* warning for each use, in hopes of speeding the functions removal.
* Usage is:
- * int deprecated foo(void)
- * and then gcc will emit a warning for each usage of the function.
+ * int __deprecated foo(void)
*/
-#if __GNUC__ >= 3
+#if ( __GNUC__ == 3 && __GNUC_MINOR > 0 ) || __GNUC__ > 3
#define __deprecated __attribute__((deprecated))
#else
#define __deprecated