X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fopenat.h;fp=lib%2Fopenat.h;h=9cf7e0f10b7f94e15580507d9133a370bbd04913;hb=f6a5a124d0cb326acd4dfa9ce3276baa26734b16;hp=dd0bb018d5451c578ab11e253e88f98dbdb2a76c;hpb=e7a3c769e98d9054d3d9f6983e678397b0b7cb94;p=gnulib.git diff --git a/lib/openat.h b/lib/openat.h index dd0bb018d..9cf7e0f10 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -27,14 +27,10 @@ #include #include -#ifndef __attribute__ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) -# define __attribute__(x) /* empty */ -# endif -#endif - -#ifndef ATTRIBUTE_NORETURN +#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) # define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) +#else +# define ATTRIBUTE_NORETURN /* empty */ #endif #if !HAVE_OPENAT