diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-10-01 10:32:59 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-10-01 10:32:59 +0800 |
commit | 160ac429f3cbaa27dc096e431a3934f657eaddea (patch) | |
tree | d3e80ce9675f30de37f71de8756dff24b293dd78 /science/netcdf4 | |
parent | f09f32fd484e7dbdb1b0500bb574bf6561cc30ad (diff) | |
download | freebsd-ports-graphics-160ac429f3cbaa27dc096e431a3934f657eaddea.tar.gz freebsd-ports-graphics-160ac429f3cbaa27dc096e431a3934f657eaddea.tar.zst freebsd-ports-graphics-160ac429f3cbaa27dc096e431a3934f657eaddea.zip |
make the patch work on both -current and -stable
Diffstat (limited to 'science/netcdf4')
-rw-r--r-- | science/netcdf4/files/patch-ncvalues.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/science/netcdf4/files/patch-ncvalues.cpp b/science/netcdf4/files/patch-ncvalues.cpp index 237cfc71b9f..7dbb0bca2d0 100644 --- a/science/netcdf4/files/patch-ncvalues.cpp +++ b/science/netcdf4/files/patch-ncvalues.cpp @@ -1,19 +1,25 @@ ---- cxx/ncvalues.cpp.orig Mon Sep 16 16:28:57 2002 -+++ cxx/ncvalues.cpp Mon Sep 16 16:29:42 2002 -@@ -310,7 +310,7 @@ +--- 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 @@ os << the_values[i] << ", "; if (the_number > 0) os << the_values[the_number-1] ; -- os.flags(save); ++#if (__GNUC__ == 2) + os.flags(save); ++#else + os.flags(std::_Ios_Fmtflags(save)); ++#endif return os; } -@@ -322,6 +322,6 @@ +@@ -322,6 +326,10 @@ os << the_values[i] << ", "; if (the_number > 0) os << the_values[the_number-1]; -- os.flags(save); ++#if (__GNUC__ == 2) + os.flags(save); ++#else + os.flags(std::_Ios_Fmtflags(save)); ++#endif return os; } |