diff lib/xalloc.h @ 1958:3bf5a026bc95

(__attribute__): Protect against redefinition.
author Jim Meyering <jim@meyering.net>
date Tue, 28 Sep 1999 15:26:45 +0000 (1999-09-28)
parents 6921aa7028ba
children 1f3b3ce10ab6
line wrap: on
line diff
--- 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