summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sys2.h b/src/sys2.h
index c7260aa01..b39dfd296 100644
--- a/src/sys2.h
+++ b/src/sys2.h
@@ -358,8 +358,10 @@ char *base_name PARAMS ((char const *));
# define IF_LINT(Code) /* empty */
#endif
-#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
-# define __attribute__(x)
+#ifndef __attribute__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8) || __STRICT_ANSI__
+# define __attribute__(x)
+# endif
#endif
#ifndef ATTRIBUTE_NORETURN