]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Use ${FIXPROTO_DEFINES}.
authorJason Merrill <merrill@gnu.org>
Wed, 18 May 1994 23:08:30 +0000 (23:08 +0000)
committerJason Merrill <merrill@gnu.org>
Wed, 18 May 1994 23:08:30 +0000 (23:08 +0000)
From-SVN: r7334

gcc/fixproto

index 7a06df42c28954ebb37534798a910f189cc7b2f3..4e0b50f9c5043f781d656ed4b88ef31ec1f69052 100755 (executable)
@@ -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