diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-02 08:13:48 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-11-02 08:13:48 +0000 |
commit | 547ff10c4dedaba525e3f76b557dab1063848caf (patch) | |
tree | 55b3c042b8b7e2010ec0ea8af3099284702084ae | |
parent | 64a6f8da1322c7f2c0fb8c8b27bba3d8a0be8f4e (diff) | |
download | mandoc-547ff10c4dedaba525e3f76b557dab1063848caf.tar.gz mandoc-547ff10c4dedaba525e3f76b557dab1063848caf.tar.zst mandoc-547ff10c4dedaba525e3f76b557dab1063848caf.zip |
Added lint to __attribute__ defines.
-rw-r--r-- | main.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.55 2009/11/02 08:08:23 kristaps Exp $ */ +/* $Id: main.c,v 1.56 2009/11/02 08:13:48 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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__ |