[PATCH:x11proto] Add Sun cc 5.9 & later to compilers supporting noreturn attribute
Alan Coopersmith
alan.coopersmith at oracle.com
Mon May 17 20:57:56 PDT 2010
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
Xfuncproto.h.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in
index 96a585c..0177119 100644
--- a/Xfuncproto.h.in
+++ b/Xfuncproto.h.in
@@ -117,7 +117,8 @@ in this Software without prior written authorization from The Open Group.
# define _X_DEPRECATED
#endif
-#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)
+#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205)) \
+ || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
# define _X_NORETURN __attribute((noreturn))
#else
# define _X_NORETURN
--
1.5.6.5
More information about the xorg-devel
mailing list