freebsd-ports/science/netcdf/files/patch-ncvalues.cpp

26 lines
576 B
C++
Raw Normal View History

--- cxx/ncvalues.cpp.orig Wed Dec 23 02:21:49 1998
+++ cxx/ncvalues.cpp Tue Oct 1 10:27:32 2002
@@ -310,7 +310,11 @@
2002-09-16 10:35:18 +02:00
os << the_values[i] << ", ";
if (the_number > 0)
os << the_values[the_number-1] ;
+#if (__GNUC__ == 2)
os.flags(save);
+#else
2002-09-16 10:35:18 +02:00
+ os.flags(std::_Ios_Fmtflags(save));
+#endif
2002-09-16 10:35:18 +02:00
return os;
}
@@ -322,6 +326,10 @@
2002-09-16 10:35:18 +02:00
os << the_values[i] << ", ";
if (the_number > 0)
os << the_values[the_number-1];
+#if (__GNUC__ == 2)
os.flags(save);
+#else
2002-09-16 10:35:18 +02:00
+ os.flags(std::_Ios_Fmtflags(save));
+#endif
2002-09-16 10:35:18 +02:00
return os;
}