diff options
-rw-r--r-- | Xfuncproto.h.in | 3 |
1 files changed, 2 insertions, 1 deletions
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 |