diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-11-17 03:10:29 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-11-17 03:10:29 +0000 |
commit | 164a928b77f596b6617a4bbf43a2c06bc35a5602 (patch) | |
tree | 8d1f20c152e2eec919c58e3259a20cc038b5d7c4 /include/libc-internal.h | |
parent | 8c325ee38bf779dc5d51e41281d3b8230c3af971 (diff) | |
download | uClibc-alpine-164a928b77f596b6617a4bbf43a2c06bc35a5602.tar.bz2 uClibc-alpine-164a928b77f596b6617a4bbf43a2c06bc35a5602.tar.xz |
Merge from trunk.
Diffstat (limited to 'include/libc-internal.h')
-rw-r--r-- | include/libc-internal.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/libc-internal.h b/include/libc-internal.h index b00a8775c..0ce501900 100644 --- a/include/libc-internal.h +++ b/include/libc-internal.h @@ -76,7 +76,7 @@ /* Prepare for the case that `__builtin_expect' is not available. */ #if __GNUC__ == 2 && __GNUC_MINOR__ < 96 -#define __builtin_expect(x, expected_value) (x) +# define __builtin_expect(x, expected_value) (x) #endif #ifndef likely # define likely(x) __builtin_expect((!!(x)),1) @@ -85,10 +85,10 @@ # define unlikely(x) __builtin_expect((!!(x)),0) #endif #ifndef __LINUX_COMPILER_H -#define __LINUX_COMPILER_H +# define __LINUX_COMPILER_H #endif #ifndef __cast__ -#define __cast__(_to) +# define __cast__(_to) #endif /* Arrange to hide uClibc internals */ @@ -104,6 +104,12 @@ # define attribute_relro #endif +#ifdef __GNUC__ +# define attribute_noreturn __attribute__ ((__noreturn__)) +#else +# define attribute_noreturn +#endif + /* Pull in things like __attribute_used__ */ #include <sys/cdefs.h> |