diff options
author | bde <bde@FreeBSD.org> | 1994-09-05 13:58:58 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1994-09-05 13:58:58 +0000 |
commit | 21853fcc8f18674cec4cf59dd147cf8b586fd9c3 (patch) | |
tree | edb257ce00f7b4b66519d17c346bd9033e870081 /usr.bin/cpp | |
parent | 691be49b3ac6205980cf35d5dbdef3bc823d740b (diff) | |
download | FreeBSD-src-21853fcc8f18674cec4cf59dd147cf8b586fd9c3.zip FreeBSD-src-21853fcc8f18674cec4cf59dd147cf8b586fd9c3.tar.gz |
Define __GNUC__ as 2 same as cc -E would do.
Diffstat (limited to 'usr.bin/cpp')
-rw-r--r-- | usr.bin/cpp/cpp.notraditional.sh | 4 | ||||
-rw-r--r-- | usr.bin/cpp/cpp.sh | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cpp/cpp.notraditional.sh b/usr.bin/cpp/cpp.notraditional.sh index b30624c..7ed43f0 100644 --- a/usr.bin/cpp/cpp.notraditional.sh +++ b/usr.bin/cpp/cpp.notraditional.sh @@ -43,7 +43,7 @@ # PATH=/usr/bin:/bin CPP=/usr/libexec/gcc2/cpp -ALST="-D__GNUC__ -$ " +ALST="-D__GNUC__=2 -$ " NSI=no OPTS="" INCS="-nostdinc" @@ -61,7 +61,7 @@ do INCS="$INCS $A" ;; -U__GNUC__) - ALST=`echo $ALST | sed -e 's/-D__GNUC__//'` + ALST=`echo $ALST | sed -e 's/-D__GNUC__=2//'` ;; -*) OPTS="$OPTS '$A'" diff --git a/usr.bin/cpp/cpp.sh b/usr.bin/cpp/cpp.sh index 93d4e49..34aa29e 100644 --- a/usr.bin/cpp/cpp.sh +++ b/usr.bin/cpp/cpp.sh @@ -36,7 +36,7 @@ # SUCH DAMAGE. # # From: @(#)cpp.sh 8.1 (Berkeley) 6/6/93 -# $Id: cpp.sh,v 1.2 1994/08/05 21:08:10 wollman Exp $ +# $Id: cpp.sh,v 1.3 1994/08/23 03:52:40 jkh Exp $ # # Transitional front end to CCCP to make it behave like (Reiser) CCP: # specifies -traditional @@ -44,7 +44,7 @@ # PATH=/usr/bin:/bin CPP=/usr/libexec/cpp -ALST="-traditional -D__GNUC__ -$ " +ALST="-traditional -D__GNUC__=2 -$ " NSI=no OPTS="" INCS="-nostdinc" @@ -62,7 +62,7 @@ do INCS="$INCS $A" ;; -U__GNUC__) - ALST=`echo $ALST | sed -e 's/-D__GNUC__//'` + ALST=`echo $ALST | sed -e 's/-D__GNUC__=2//'` ;; -*) OPTS="$OPTS '$A'" |