changeset 3293:a3e558e29878

(__attribute__): Define it to be empty for compilers that don't support that syntax.
author Jim Meyering <jim@meyering.net>
date Sat, 14 Jul 2001 19:47:20 +0000
parents 05d04e540b2a
children 0477051f57eb
files lib/obstack.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/obstack.c	Wed Jul 11 15:28:51 2001 +0000
+++ b/lib/obstack.c	Sat Jul 14 19:47:20 2001 +0000
@@ -471,6 +471,13 @@
 #  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 ()