From ee4e253a3f1a62e2f3f89f5339590fd4e6cde7c4 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 9 May 2014 19:25:10 -0700 Subject: Enable use of __attribute__((deprecated)) with Solaris Studio 12.4 compiler Support for this attribute is added in the 12.4 beta release. Signed-off-by: Alan Coopersmith --- include/pciaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pciaccess.h b/include/pciaccess.h index 22faf89..1d7aa4b 100644 --- a/include/pciaccess.h +++ b/include/pciaccess.h @@ -59,7 +59,7 @@ #include -#if __GNUC__ >= 3 +#if (__GNUC__ >= 3) || (__SUNPRO_C >= 0x5130) #define __deprecated __attribute__((deprecated)) #else #define __deprecated -- cgit v1.2.3