summaryrefslogtreecommitdiff
path: root/lib/xalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xalloc.h')
-rw-r--r--lib/xalloc.h2
1 files changed, 1 insertions, 1 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