diff options
Diffstat (limited to 'usr.bin/cpp/cpp.sh')
-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 |