summaryrefslogtreecommitdiff
path: root/xserver/include
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-13 15:02:04 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-09-13 15:02:04 +0000
commit4771a1ba648353b179cb377d82a61e9bb7aea395 (patch)
treeb3d1019da968e4de9fd3f7c331332bc5f8c6e7f4 /xserver/include
parent7fb4d7ff50f1be04456b6342eed664124c38c871 (diff)
Do not use 'deprecated' attribute on gcc < 3.1.
It causes lots of spurious warnings in build logs. suggestion to make the test gcc >= 3.1 millert@, ok todd@, miod@
Diffstat (limited to 'xserver/include')
-rw-r--r--xserver/include/resource.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/include/resource.h b/xserver/include/resource.h
index 9b5792e30..b19d74cd7 100644
--- a/xserver/include/resource.h
+++ b/xserver/include/resource.h
@@ -251,7 +251,7 @@ extern RESTYPE TypeMask;
* Please use the noted replacements instead.
*/
-#ifdef __GNUC__
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
#define X_DEPRECATED __attribute__((deprecated))
#else
#define X_DEPRECATED