diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-08-24 00:54:37 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-08-23 20:54:37 -0400 |
commit | 46fe53810a6cd815c8c34d9e233912f7642d0582 (patch) | |
tree | 3a9a786a0da6b854e8c87a5ebf0dd82f2cc1426e /gcc | |
parent | 44af3436ad5a76ed22f089d99acf6aed5e8dba94 (diff) | |
download | gcc-46fe53810a6cd815c8c34d9e233912f7642d0582.zip gcc-46fe53810a6cd815c8c34d9e233912f7642d0582.tar.gz gcc-46fe53810a6cd815c8c34d9e233912f7642d0582.tar.bz2 |
* fixinc.irix: Add curses.h handling from fixinc.wrap.
From-SVN: r21923
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rwxr-xr-x | gcc/fixinc.irix | 33 |
2 files changed, 43 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 38a135e..79b54c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +Mon Aug 24 00:53:53 1998 Jason Merrill <jason@yorick.cygnus.com> + + * fixinc.irix: Add curses.h handling from fixinc.wrap. + +Fri Aug 14 14:12:59 1998 Jason Merrill <jason@yorick.cygnus.com> + + * c-common.c (combine_strings): Also set TREE_READONLY. + Change warn_write_strings to flag_const_strings. + * c-decl.c, c-tree.h: Likewise. + Sun Aug 23 18:39:11 1998 David S. Miller <davem@pierdol.cobaltmicro.com> * config/sparc/sparc.c (sparc_emit_set_const32): If outputting a diff --git a/gcc/fixinc.irix b/gcc/fixinc.irix index 5a7cb3f..6562581 100755 --- a/gcc/fixinc.irix +++ b/gcc/fixinc.irix @@ -97,6 +97,39 @@ __EOF__ fi fi +# Avoid the definition of the bool type in curses.h when using +# g++, since it's now an official type in the C++ language. + +# This is also from fixinc.wrap. + +file=curses.h +if [ -r $INPUT/$file ]; then + echo Checking $INPUT/$file + w='[ ]' + if grep "typedef$w$w*char$w$w*bool$w*;" $INPUT/$file >/dev/null + then + echo Fixed $file + rm -f $LIB/$file + cat <<'__EOF__' >$LIB/$file +#ifndef _CURSES_H_WRAPPER +#ifdef __cplusplus +# define bool __curses_bool_t +#endif +#include_next <curses.h> +#ifdef __cplusplus +# undef bool +#endif +#define _CURSES_H_WRAPPER +#endif /* _CURSES_H_WRAPPER */ +__EOF__ + # Define _CURSES_H_WRAPPER at the end of the wrapper, not the start, + # so that if #include_next gets another instance of the wrapper, + # this will follow the #include_next chain until we arrive at + # the real <curses.h>. + chmod a+r $LIB/$file + fi +fi + # In limits.h, put #ifndefs around things that are supposed to be defined # in float.h to avoid redefinition errors if float.h is included first. |