From 4a03ccc044ff2dc86bbd1de4641a2442caa7044e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 28 Sep 1999 15:26:45 +0000 Subject: (__attribute__): Protect against redefinition. --- lib/xalloc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-70-g09d2