From e1c43a3e5f2f3543918b47d320af588d4e795a61 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 19 Feb 2004 21:09:48 +0000 Subject: don't use -$ flag for cpp with gcc 3 and up ok espie@ --- usr.bin/xlint/xlint/xlint.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.bin/xlint') diff --git a/usr.bin/xlint/xlint/xlint.c b/usr.bin/xlint/xlint/xlint.c index 58aa70704ea..32714f195d0 100644 --- a/usr.bin/xlint/xlint/xlint.c +++ b/usr.bin/xlint/xlint/xlint.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xlint.c,v 1.14 2003/04/25 23:22:21 deraadt Exp $ */ +/* $OpenBSD: xlint.c,v 1.15 2004/02/19 21:09:47 brad 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.14 2003/04/25 23:22:21 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: xlint.c,v 1.15 2004/02/19 21:09:47 brad Exp $"; #endif #include @@ -330,7 +330,9 @@ main(argc, argv) appcstrg(&cppflags, "-undef"); /* even with -undef cpp still identifies as GNUC */ appcstrg(&cppflags, "-U__GNUC__"); +#if defined(__GNUC__) && __GNUC__ < 3 appcstrg(&cppflags, "-$"); +#endif appcstrg(&cppflags, "-C"); appcstrg(&cppflags, "-Wcomment"); appcstrg(&cppflags, "-D__OpenBSD__"); -- cgit v1.2.3