mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
misc/sys/cdefs.h: Add _Noreturn macro for pre-C11 compilers
2014-07-02 Will Newton <will.newton@linaro.org> Paul Eggert <eggert@cs.ucla.edu> * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
This commit is contained in:
parent
e1e041c439
commit
c4c4124473
@ -1,3 +1,8 @@
|
||||
2014-07-02 Will Newton <will.newton@linaro.org>
|
||||
Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
|
||||
|
||||
2014-07-02 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
* resolv/gethnamaddr.c: Add comment warning that the file is
|
||||
|
@ -382,6 +382,14 @@
|
||||
# define __glibc_likely(cond) (cond)
|
||||
#endif
|
||||
|
||||
#if !defined _Noreturn && __STDC_VERSION__ < 201112 && !__GNUC_PREREQ (4,7)
|
||||
# if __GNUC_PREREQ (2,8)
|
||||
# define _Noreturn __attribute__ ((__noreturn__))
|
||||
# else
|
||||
# define _Noreturn
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
#if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
|
||||
|
Loading…
Reference in New Issue
Block a user