From: Jim Meyering Date: Tue, 28 Sep 1999 15:26:45 +0000 (+0000) Subject: (__attribute__): Protect against redefinition. X-Git-Tag: cvs-readonly~7214 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=f8bf15285aa9296a754a394291d3e6a3f18ba71f;p=gnulib.git (__attribute__): Protect against redefinition. --- diff --git a/lib/xalloc.h b/lib/xalloc.h index f75c3cdd7..38ae1d07d 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -26,8 +26,10 @@ # endif # endif -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) -# define __attribute__(x) +# ifndef __attribute__ +# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) +# define __attribute__(x) +# endif # endif # ifndef ATTRIBUTE_NORETURN