diff options
Diffstat (limited to 'lib/cdefs.h')
-rw-r--r-- | lib/cdefs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cdefs.h b/lib/cdefs.h index b164531248..98cf74995a 100644 --- a/lib/cdefs.h +++ b/lib/cdefs.h @@ -409,6 +409,12 @@ # define __glibc_likely(cond) (cond) #endif +#ifdef __has_attribute +# define __glibc_has_attribute(attr) __has_attribute (attr) +#else +# define __glibc_has_attribute(attr) 0 +#endif + #if (!defined _Noreturn \ && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ && !__GNUC_PREREQ (4,7)) |