summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-07-14 19:47:20 +0000
committerJim Meyering <jim@meyering.net>2001-07-14 19:47:20 +0000
commitf1a6dd3dcc2394adf38b056de6f55c99b37eabad (patch)
treedb4822fe452c2927aed26af852a9b46a1ba9572e
parent0e4b6ae72478bae5f1b758efd29b03c50dbf5468 (diff)
downloadcoreutils-f1a6dd3dcc2394adf38b056de6f55c99b37eabad.tar.xz
(__attribute__): Define it to be empty for compilers
that don't support that syntax.
-rw-r--r--lib/obstack.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/obstack.c b/lib/obstack.c
index 0789459bf..b510c7713 100644
--- a/lib/obstack.c
+++ b/lib/obstack.c
@@ -471,6 +471,13 @@ _obstack_memory_used (h)
# define fputs(s, f) _IO_fputs (s, f)
# endif
+#ifndef __attribute__
+/* This feature is available in gcc versions 2.5 and later. */
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__
+# define __attribute__(Spec) /* empty */
+# endif
+#endif
+
static void
__attribute__ ((noreturn))
print_and_abort ()