diff options
author | Jim Meyering <jim@meyering.net> | 1999-09-19 16:21:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-09-19 16:21:26 +0000 |
commit | 96949ef7f5217653d33fe80080e38e71e619914b (patch) | |
tree | 4380f3faaa13c2191735a5ed8c8171bf1ed70222 | |
parent | 44b1bde1488b1bb250c4a1b42dfdae437bbffcd3 (diff) | |
download | coreutils-96949ef7f5217653d33fe80080e38e71e619914b.tar.xz |
(__attribute__): Define.
(ATTRIBUTE_NORETURN): Remove #else clause.
(ATTRIBUTE_UNUSED): Define.
-rw-r--r-- | src/sys2.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/sys2.h b/src/sys2.h index 8e80aa356..2082cb60c 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -358,8 +358,14 @@ char *base_name PARAMS ((char const *)); # define IF_LINT(Code) /* empty */ #endif -#if __GNUC__ +#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __attribute__(x) +#endif + +#ifndef ATTRIBUTE_NORETURN # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) -#else -# define ATTRIBUTE_NORETURN /* empty */ +#endif + +#ifndef ATTRIBUTE_UNUSED +# define ATTRIBUTE_UNUSED __attribute__ ((__unused__)) #endif |