diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2001-01-27 19:00:09 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-01-27 19:00:09 +0000 |
commit | 58245fb122db92684142264f64c36572e547dded (patch) | |
tree | cf7d37b99fa87efaecac7064496d766e60daad57 /libstdc++-v3/libsupc++ | |
parent | 3d84f80f1ba70308ad8f1cede96b7fa362b56ee7 (diff) | |
download | gcc-58245fb122db92684142264f64c36572e547dded.zip gcc-58245fb122db92684142264f64c36572e547dded.tar.gz gcc-58245fb122db92684142264f64c36572e547dded.tar.bz2 |
pure.cc (writestr): Just use cstdio and std::fputs.
2001-01-26 Benjamin Kosnik <bkoz@kredhat.com>
* libsupc++/pure.cc (writestr): Just use cstdio and std::fputs.
From-SVN: r39296
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r-- | libstdc++-v3/libsupc++/pure.cc | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/libstdc++-v3/libsupc++/pure.cc b/libstdc++-v3/libsupc++/pure.cc index 7ada066..e4f14d3 100644 --- a/libstdc++-v3/libsupc++/pure.cc +++ b/libstdc++-v3/libsupc++/pure.cc @@ -1,5 +1,5 @@ // -*- C++ -*- -// Copyright (C) 2000 Free Software Foundation +// Copyright (C) 2000, 2001 Free Software Foundation // // This file is part of GNU CC. // @@ -28,19 +28,7 @@ // the GNU General Public License. #include <bits/c++config.h> - -#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 +#include <cstdio> extern "C" { @@ -57,8 +45,9 @@ extern void __terminate(void) __attribute__ ((__noreturn__)); void PURE_VIRTUAL_NAME (void) { - writestr ("pure virtual method called\n"); + std::fputs ("pure virtual method called\n", stderr); __terminate (); } } + |