From 068fd2cb19b6c0434f63b427158506e2ec3c6206 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 9 May 2014 19:23:58 -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 --- Xfuncproto.h.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in index dac9229..608728f 100644 --- a/Xfuncproto.h.in +++ b/Xfuncproto.h.in @@ -116,7 +116,8 @@ in this Software without prior written authorization from The Open Group. #endif /* Added in X11R6.9, so available in any version of modular xproto */ -#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301) +#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)) \ + || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5130)) # define _X_DEPRECATED __attribute__((deprecated)) #else /* not gcc >= 3.1 */ # define _X_DEPRECATED -- cgit v1.2.1