diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-10-01 03:13:17 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-10-01 03:13:17 +0000 |
commit | af81cd0d2023f68c6af6f3dfdef3168b306d6228 (patch) | |
tree | a9626b3baee4b673ba92deab0b506438f7226edf /math/newmat | |
parent | 114b7928ef6fc6036f443bd09b3f4b6e029af172 (diff) |
make the patch work on both -current and -stable
Notes
Notes:
svn path=/head/; revision=67275
Diffstat (limited to 'math/newmat')
-rw-r--r-- | math/newmat/files/patch-newmat9.cpp | 35 |
1 files changed, 10 insertions, 25 deletions
diff --git a/math/newmat/files/patch-newmat9.cpp b/math/newmat/files/patch-newmat9.cpp index a514f4292a90..841a744a604e 100644 --- a/math/newmat/files/patch-newmat9.cpp +++ b/math/newmat/files/patch-newmat9.cpp @@ -1,29 +1,14 @@ ---- newmat9.cpp.orig Fri Sep 6 23:36:13 2002 -+++ newmat9.cpp Fri Sep 6 23:53:30 2002 -@@ -23,11 +23,6 @@ - #define REPORT {} +--- newmat9.cpp.orig Wed Oct 17 14:46:04 2001 ++++ newmat9.cpp Tue Oct 1 11:00:36 2002 +@@ -24,8 +24,10 @@ #endif --// for G++ 3.01 + // for G++ 3.01 -#ifndef _Ios_Fmtflags --#define _Ios_Fmtflags long --#endif -- - ostream& operator<<(ostream& s, const BaseMatrix& X) - { - GeneralMatrix* gm = ((BaseMatrix&)X).Evaluate(); operator<<(s, *gm); -@@ -38,7 +33,13 @@ - ostream& operator<<(ostream& s, const GeneralMatrix& X) - { - MatrixRow mr((GeneralMatrix*)&X, LoadOnEntry); -- int w = s.width(); int nr = X.Nrows(); _Ios_Fmtflags f = s.flags(); -+ int w = s.width(); int nr = X.Nrows(); -+#if defined __GNUG__ && __GNUG__ < 3 -+ _Ios_Fmtflags ++#if __GNUC__ < 3 + #define _Ios_Fmtflags long +#else -+ ios_base::fmtflags -+#endif -+ f = s.flags(); - s.setf(ios::fixed, ios::floatfield); - for (int i=1; i<=nr; i++) - { ++#define _Ios_Fmtflags ios_base::fmtflags + #endif + + ostream& operator<<(ostream& s, const BaseMatrix& X) |