diff options
-rw-r--r-- | usr.bin/xlint/xlint/xlint.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index 5bc5da12bdb..376c91d5f76 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xlint.c,v 1.29 2006/04/18 22:34:17 cloder Exp $ */ +/* $OpenBSD: xlint.c,v 1.30 2006/04/21 18:24:08 cloder Exp $ */ /* $NetBSD: xlint.c,v 1.3 1995/10/23 14:29:30 jpo Exp $ */ /* @@ -33,7 +33,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: xlint.c,v 1.29 2006/04/18 22:34:17 cloder Exp $"; +static char rcsid[] = "$OpenBSD: xlint.c,v 1.30 2006/04/21 18:24:08 cloder Exp $"; #endif #include <sys/param.h> @@ -313,10 +313,14 @@ main(int argc, char *argv[]) appcstrg(&cppflags, "-undef"); /* even with -undef cpp still identifies as GNUC */ appcstrg(&cppflags, "-U__GNUC__"); -#if defined(__GNUC__) && __GNUC__ < 3 +#if defined(__GNUC__) +#if __GNUC__ < 3 appcstrg(&cppflags, "-$"); -#endif appcstrg(&cppflags, "-C"); +#else + appcstrg(&cppflags, "-CC"); +#endif +#endif appcstrg(&cppflags, "-Wcomment"); appcstrg(&cppflags, "-D__OpenBSD__"); appcstrg(&cppflags, "-Dlint"); /* XXX don't def. with -s */ |