From: deal Date: Tue, 6 May 2003 02:19:42 +0000 (+0000) Subject: Fix for gcc2.95 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c09d7a5da703beb3fa831a4bc6b49fc323682a90;p=dealii-svn.git Fix for gcc2.95 git-svn-id: https://svn.dealii.org/trunk@7582 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/reference.cc b/tests/base/reference.cc index 114132dc0e..70f8d05aab 100644 --- a/tests/base/reference.cc +++ b/tests/base/reference.cc @@ -1,6 +1,6 @@ //---------------------------- reference.cc --------------------------- -// $Id$ -// Version: $Name$ +// reference.cc,v 1.19 2003/05/05 13:49:06 wolf Exp +// Version: // // Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 by the deal.II authors // @@ -58,7 +58,11 @@ int main() // std::cerr, since it tries to do // something with its buffer, but // that is already gone by then +#if __GNUC__ != 2 std::basic_streambuf *old_cerr_buf = std::cerr.rdbuf(); +#else + streambuf *old_cerr_buf = std::cerr.rdbuf(); +#endif std::cerr.rdbuf(logfile.rdbuf()); Test a("A"); diff --git a/tests/lac/block_vector.cc b/tests/lac/block_vector.cc index 09ffa9953f..05a765b55f 100644 --- a/tests/lac/block_vector.cc +++ b/tests/lac/block_vector.cc @@ -1,6 +1,6 @@ //-------------------------------------------------------------------- -// $Id$ -// Version: $Name$ +// block_vector.cc,v 1.14 2003/05/05 13:49:06 wolf Exp +// Version: // // Copyright (C) 2000, 2001, 2002, 2003 by the deal.II authors // @@ -157,7 +157,11 @@ int main () // do the same weird stuff as in // tests/base/reference.cc +#if __GNUC__ != 2 std::basic_streambuf *old_cerr_buf = std::cerr.rdbuf(); +#else + streambuf *old_cerr_buf = std::cerr.rdbuf(); +#endif std::cerr.rdbuf(logfile.rdbuf()); try