diff options
author | Marc Espie <espie@cvs.openbsd.org> | 1999-06-17 23:27:18 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 1999-06-17 23:27:18 +0000 |
commit | 67cbffa561baf673138bbeb2fe9a3cbea6f06dbf (patch) | |
tree | f36536fb8ae7fa5233f46913e0a841710ec3622b | |
parent | 6315d23b898d98a15875324980c38b402025d34b (diff) |
Sync for 990608 egcs snapshot...
finally, the interface is frozen with /usr/libexec/cpp not defining
__GNUC__
-rw-r--r-- | usr.bin/cpp/cpp.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/cpp/cpp.sh b/usr.bin/cpp/cpp.sh index 82a3ac50949..e8607ed8ab3 100644 --- a/usr.bin/cpp/cpp.sh +++ b/usr.bin/cpp/cpp.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: cpp.sh,v 1.4 1999/05/26 16:03:39 espie Exp $ +# $OpenBSD: cpp.sh,v 1.5 1999/06/17 23:27:17 espie Exp $ # # Copyright (c) 1990 The Regents of the University of California. @@ -44,7 +44,7 @@ # doesn't search gcc-include # PATH=/usr/bin:/bin -ALST="-traditional -$ " +ALST="-traditional -$ -D__GNUC__" NSI=no OPTS="" INCS="-nostdinc" @@ -73,6 +73,9 @@ do -I*) INCS="$INCS $A" ;; + -U__GNUC__) + ALST=`echo $ALST | sed -e s/-D__GNUC__//` + ;; -imacros|-include|-idirafter|-iprefix|-iwithprefix) INCS="$INCS '$A' '$1'" shift |