From 547ff10c4dedaba525e3f76b557dab1063848caf Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 2 Nov 2009 08:13:48 +0000 Subject: Added lint to __attribute__ defines. --- main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f06831b3..7f02035e 100644 --- a/main.c +++ b/main.c @@ -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 * @@ -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__ -- cgit v1.2.3-56-ge451