]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix for gcc2.95
authordeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 May 2003 02:19:42 +0000 (02:19 +0000)
committerdeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 May 2003 02:19:42 +0000 (02:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@7582 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/reference.cc
tests/lac/block_vector.cc

index 114132dc0ec2b4f4cbbeddcf0ced4477dbe60f94..70f8d05aab91b5007437c73882060e567e4df0b1 100644 (file)
@@ -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<char> *old_cerr_buf = std::cerr.rdbuf();
+#else
+  streambuf *old_cerr_buf = std::cerr.rdbuf();
+#endif
   std::cerr.rdbuf(logfile.rdbuf());
   
   Test a("A");
index 09ffa9953fb8976e2332a854ef1483a07347d809..05a765b55fa98cfb99cfb71f81ee226659cd0ff8 100644 (file)
@@ -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<char> *old_cerr_buf = std::cerr.rdbuf();
+#else
+  streambuf *old_cerr_buf = std::cerr.rdbuf();
+#endif
   std::cerr.rdbuf(logfile.rdbuf());
   
   try

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.