From: Jim Meyering Date: Sun, 19 Sep 1999 16:21:26 +0000 (+0000) Subject: (__attribute__): Define. X-Git-Tag: FILEUTILS-4_0j-trial~219 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96949ef7f5217653d33fe80080e38e71e619914b;p=thirdparty%2Fcoreutils.git (__attribute__): Define. (ATTRIBUTE_NORETURN): Remove #else clause. (ATTRIBUTE_UNUSED): Define. --- diff --git a/src/sys2.h b/src/sys2.h index 8e80aa3567..2082cb60c7 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