summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 08:13:48 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-02 08:13:48 +0000
commitd0b5944b6866943fc00e03e4f6bdf10972d56575 (patch)
tree826f177c560c1eadea193a58dacb1f214c87c1df
parent41716fe6c55a74e00a0a9593d42872cd43e56780 (diff)
downloadmandoc-d0b5944b6866943fc00e03e4f6bdf10972d56575.tar.gz
Added lint to __attribute__ defines.
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index f8b5c597..ad308c08 100644
--- a/main.c
+++ b/main.c
@@ -33,7 +33,9 @@
/* FIXME: Intel's compiler? LLVM? pcc? */
#if !defined(__GNUC__) || (__GNUC__ < 2)
-# define __attribute__(x)
+# if !defined(lint)
+# define __attribute__(x)
+# endif
#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
#ifdef __linux__