summaryrefslogtreecommitdiff
path: root/gcc/fixproto
diff options
context:
space:
mode:
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-05-18 23:08:30 +0000
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>1994-05-18 23:08:30 +0000
commit72af1699d339ca4dc9254b480c96476381f4297e (patch)
treea286e52afc13d9879b6226bad4178427e0e36d1b /gcc/fixproto
parentb33b80ed5adffc3ebffce042f06c0b483a2517a0 (diff)
downloadgcc-72af1699d339ca4dc9254b480c96476381f4297e.tar.gz
Use ${FIXPROTO_DEFINES}.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7334 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixproto')
-rwxr-xr-xgcc/fixproto3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fixproto b/gcc/fixproto
index 7a06df42c28..4e0b50f9c50 100755
--- a/gcc/fixproto
+++ b/gcc/fixproto
@@ -57,6 +57,7 @@ progname=$0
progname=`basename $progname`
original_dir=`pwd`
CPP=${CPP-./cpp}
+DEFINES="-D__STDC__=0 -D__cplusplus ${FIXPROTO_DEFINES}"
if [ `echo $1 | wc -w` = 0 ] ; then
echo $progname\: usage\: $progname target-dir \[ source-dir \.\.\. \]
@@ -317,7 +318,7 @@ for code in ALL STD ; do
echo "__DEFINED_MACRO_${macro};" >>fixtmp.c
echo "#endif" >>fixtmp.c
done
- if ${CPP} -D__STDC__ -D__cplusplus -D_POSIX_SOURCE $include_path fixtmp.c >fixtmp.i 2>/dev/null
+ if ${CPP} ${DEFINES} $include_path fixtmp.c >fixtmp.i 2>/dev/null
then
$original_dir/fix-header $rel_source_file $abs_source_file $abs_target_file "$required_list" <fixtmp.i
else