* fixincludes: Tweak fix for struct exception in math.h

From-SVN: r17513
This commit is contained in:
Todd Vierling 1998-01-27 21:16:28 +00:00 committed by Jeff Law
parent e1467ff26b
commit e95f01957f
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Tue Jan 27 22:14:48 1998 Todd Vierling <tv@pobox.com>
* fixincludes: Tweak fix for struct exception in math.h
Tue Jan 27 17:21:09 1998 Gavin Koch (gavin@cygnus.com)
* mips/mips.c (mips_expand_prologue,mips_expand_epilogue):

View File

@ -2822,21 +2822,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