diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-09-12 18:29:13 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-09-12 18:29:13 -0400 |
commit | cf601f01c1192813a04d883e60f99215237adcdf (patch) | |
tree | 6ed7a09b858ea9b8747b0e0e27d59a6898b6ba30 /gcc | |
parent | 4e760ce31ed17cf427654601931f3a686a3cfc21 (diff) | |
download | gcc-cf601f01c1192813a04d883e60f99215237adcdf.zip gcc-cf601f01c1192813a04d883e60f99215237adcdf.tar.gz gcc-cf601f01c1192813a04d883e60f99215237adcdf.tar.bz2 |
Rewritten to use fixinc-nt.sed.
From-SVN: r10339
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/fixinc.winnt | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/gcc/fixinc.winnt b/gcc/fixinc.winnt index 8ed8553..915ac72 100644 --- a/gcc/fixinc.winnt +++ b/gcc/fixinc.winnt @@ -28,19 +28,28 @@ # compiling with gcc. The header files by default do not # provide many essential definitions and declarations if # __STDC__ is 1. This script modifies the header files to check -# for __STRICT_ANSI__ being defined instead. However the most -# important modification is to change all occurrences of __stdcall -# and __cdecl to __attribute__((stdcall)) and __attribute__((cdecl)), -# respectively. Once munged, the +# for __STRICT_ANSI__ being defined instead. Once munged, the # resulting new system include files are placed in a directory -# that GNU C will search *before* searching the /mstools/h -# directory. This script should work properly for an /mstools/h -# directory dated 9/4/94 on the installation CDROM. +# that GNU C will search *before* searching the Include +# directory. # # See README-fixinc for more information. +ORIG_DIR=`pwd` + # Directory containing the original header files. -INPUT=${2-${INPUT-/mstools/h}} +cd $2; SEDFILE=`${PWDCMD-pwd}`/fixinc-nt.sed +echo $SEDFILE +if [ ! -f $SEDFILE ] +then echo fixincludes: sed script 'fixinc-nt.sed' not found +exit 1 +fi +echo 'Using sed script: ' ${SEDFILE} + +cd $ORIG_DIR + +INPUT=${INCLUDE} +echo 'Using the Include environment variable to find header files to fix' # Fail if no arg to specify a directory for the output. if [ x$1 = x ] |