summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/xalloc.h2
-rw-r--r--src/sys2.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h
index 38ae1d07d..c9bbb1386 100644
--- a/lib/xalloc.h
+++ b/lib/xalloc.h
@@ -27,7 +27,7 @@
# endif
# ifndef __attribute__
-# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
# define __attribute__(x)
# endif
# endif
diff --git a/src/sys2.h b/src/sys2.h
index d051c48b1..c7260aa01 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -358,7 +358,7 @@ char *base_name PARAMS ((char const *));
# define IF_LINT(Code) /* empty */
#endif
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
# define __attribute__(x)
#endif