summaryrefslogtreecommitdiff
path: root/lib/xalloc.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-09-28 15:26:45 +0000
committerJim Meyering <jim@meyering.net>1999-09-28 15:26:45 +0000
commit4a03ccc044ff2dc86bbd1de4641a2442caa7044e (patch)
treea8714419809a06ee462f10f77d9d49d57fcff286 /lib/xalloc.h
parent57d52e5170bd4aa269600ef61720697a88a61f96 (diff)
downloadcoreutils-4a03ccc044ff2dc86bbd1de4641a2442caa7044e.tar.xz
(__attribute__): Protect against redefinition.
Diffstat (limited to 'lib/xalloc.h')
-rw-r--r--lib/xalloc.h6
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