mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-08 10:08:03 +02:00
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>
This commit is contained in:
parent
e7d73aec46
commit
1511eb6065
1 changed files with 6 additions and 0 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue