diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-02-19 21:09:48 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-02-19 21:09:48 +0000 |
commit | e1c43a3e5f2f3543918b47d320af588d4e795a61 (patch) | |
tree | 4250c315c79bd2d50b90a11817693d57738519db /usr.bin/xlint | |
parent | 2ab0d51d05d4fbb245049ff435ba828a3516ce92 (diff) |
don't use -$ flag for cpp with gcc 3 and up
ok espie@
Diffstat (limited to 'usr.bin/xlint')
-rw-r--r-- | usr.bin/xlint/xlint/xlint.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <sys/param.h> @@ -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__"); |