From: Todd Vierling Date: Mon, 9 Feb 1998 21:09:45 +0000 (+0000) Subject: * fixincludes: Tweak fix for struct exception in math.h X-Git-Tag: prereleases/egcs-1.0.2-prerelease~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35de800fd4fe1064e887f4771bae99901277e35a;p=thirdparty%2Fgcc.git * fixincludes: Tweak fix for struct exception in math.h From-SVN: r17810 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3b5331034a3a..56caf507a792 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 9 22:10:58 1998 Todd Vierling + + * fixincludes: Tweak fix for struct exception in math.h + Mon Feb 9 01:15:08 1998 Mark Mitchell * integrate.c (get_label_from_map): New function. diff --git a/gcc/fixincludes b/gcc/fixincludes index 2a41c8d568fb..d7c93bfe9e3b 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -2765,21 +2765,25 @@ if [ -r ${LIB}/$file ]; then sed -e '/struct exception/i\ #ifdef __cplusplus\ #define exception __math_exception\ -#endif'\ +#endif +'\ -e '/struct exception/a\ #ifdef __cplusplus\ #undef exception\ -#endif' ${LIB}/$file > ${LIB}/${file}.sed +#endif +' ${LIB}/$file > ${LIB}/${file}.sed rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file if egrep 'matherr()' ${LIB}/$file >/dev/null 2>&1; then sed -e '/matherr/i\ #ifdef __cplusplus\ #define exception __math_exception\ -#endif'\ +#endif +'\ -e '/matherr/a\ #ifdef __cplusplus\ #undef exception\ -#endif' ${LIB}/$file > ${LIB}/${file}.sed +#endif +' ${LIB}/$file > ${LIB}/${file}.sed rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file fi if cmp $file ${LIB}/$file >/dev/null 2>&1; then