diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xalloc.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 |