diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2010-03-27 19:42:59 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2010-03-28 13:14:57 -0700 |
commit | 1511eb6065c103149b7ce59b4cc0aa538449cf80 (patch) | |
tree | 764c78881bb368b20d6a5597cbec66ac5695fbdc /Xfuncproto.h.in | |
parent | e7d73aec46f2ebc21e8b80378c3647b69f098b9a (diff) |
Add _X_NORETURN macro to signify functions that don't return
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'Xfuncproto.h.in')
-rw-r--r-- | Xfuncproto.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Xfuncproto.h.in b/Xfuncproto.h.in index afdd95b..96a585c 100644 --- a/Xfuncproto.h.in +++ b/Xfuncproto.h.in @@ -117,4 +117,10 @@ in this Software without prior written authorization from The Open Group. # define _X_DEPRECATED #endif +#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205) +# define _X_NORETURN __attribute((noreturn)) +#else +# define _X_NORETURN +#endif /* GNUC */ + #endif /* _XFUNCPROTO_H_ */ |