diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2001-02-06 07:27:25 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-02-06 07:27:25 +0000 |
commit | f84e0dd3148f0555a6e8a5da1467cdaf2c6e6d5b (patch) | |
tree | 086b79dd1b12f9de7713f55b6bf847ea864e3300 | |
parent | 0a1cceea5cdad1fc9bd4d7d81c5259cd47777c09 (diff) | |
download | gcc-f84e0dd3148f0555a6e8a5da1467cdaf2c6e6d5b.zip gcc-f84e0dd3148f0555a6e8a5da1467cdaf2c6e6d5b.tar.gz gcc-f84e0dd3148f0555a6e8a5da1467cdaf2c6e6d5b.tar.bz2 |
locale_facets.h (class moneypunct): Fix typos.
2001-02-05 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/locale_facets.h (class moneypunct): Fix typos.
* libsupc++/pure.cc: Revert.
From-SVN: r39484
-rw-r--r-- | libstdc++-v3/ChangeLog | 1 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/pure.cc | 19 |
2 files changed, 16 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 654a557..2f87bd3 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,6 +1,7 @@ 2001-02-05 Benjamin Kosnik <bkoz@redhat.com> * include/bits/locale_facets.h (class moneypunct): Fix typos. + * libsupc++/pure.cc: Revert. 2001-02-05 Benjamin Kosnik <bkoz@redhat.com> diff --git a/libstdc++-v3/libsupc++/pure.cc b/libstdc++-v3/libsupc++/pure.cc index e4f14d3..7ada066 100644 --- a/libstdc++-v3/libsupc++/pure.cc +++ b/libstdc++-v3/libsupc++/pure.cc @@ -1,5 +1,5 @@ // -*- C++ -*- -// Copyright (C) 2000, 2001 Free Software Foundation +// Copyright (C) 2000 Free Software Foundation // // This file is part of GNU CC. // @@ -28,7 +28,19 @@ // the GNU General Public License. #include <bits/c++config.h> -#include <cstdio> + +#ifdef _GLIBCPP_HAVE_UNISTD_H +# include <unistd.h> +# define writestr(str) write(2, str, sizeof(str) - 1) +# ifdef __GNU_LIBRARY__ + /* Avoid forcing the library's meaning of `write' on the user program + by using the "internal" name (for use within the library). */ +/*# define write(fd, buf, n) __write((fd), (buf), (n))*/ +# endif +#else +# include <stdio.h> +# define writestr(str) fputs(str, stderr) +#endif extern "C" { @@ -45,9 +57,8 @@ extern void __terminate(void) __attribute__ ((__noreturn__)); void PURE_VIRTUAL_NAME (void) { - std::fputs ("pure virtual method called\n", stderr); + writestr ("pure virtual method called\n"); __terminate (); } } - |