diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-17 20:57:27 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-05-18 17:53:10 -0700 |
commit | d14e0d02507dd873f43b1122c468a52ed5b295c1 (patch) | |
tree | e1f68fcb209f877dcab39fff8e98448395453b56 /Xfuncproto.h.in | |
parent | 9ffca704438993516016671e9a7f67c5ca21f142 (diff) |
Add Sun cc 5.9 & later to compilers supporting noreturn attribute
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'Xfuncproto.h.in')
-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 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 |