summaryrefslogtreecommitdiff
path: root/devel/netcdf/patches/patch-ao
blob: a4e98d5424d456b2f97f4043327896371c5c81ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
$NetBSD: patch-ao,v 1.1 2004/01/11 15:58:45 cjep Exp $

--- cxx/ncvalues.cpp.orig	1998-12-22 18:21:49.000000000 +0000
+++ cxx/ncvalues.cpp
@@ -8,5 +8,5 @@
  *********************************************************************/
 
-#include <iostream.h>		// for debugging
+#include <iostream>		// for debugging
 #include "ncvalues.h"
 
@@ -26,5 +26,5 @@ long NcValues::num( void )
 }    
 
-ostream& operator<< (ostream& os, const NcValues& vals)
+std::ostream& operator<< (std::ostream& os, const NcValues& vals)
 {
     return vals.print(os);
@@ -245,5 +245,5 @@ inline char* NcValues_char::as_string( l
 }
 
-ostream& NcValues_short::print(ostream& os) const
+std::ostream& NcValues_short::print(std::ostream& os) const
 {
     for(int i = 0; i < the_number - 1; i++)
@@ -254,5 +254,5 @@ ostream& NcValues_short::print(ostream& 
 }
 
-ostream& NcValues_int::print(ostream& os) const
+std::ostream& NcValues_int::print(std::ostream& os) const
 {
     for(int i = 0; i < the_number - 1; i++)
@@ -263,5 +263,5 @@ ostream& NcValues_int::print(ostream& os
 }
 
-ostream& NcValues_nclong::print(ostream& os) const
+std::ostream& NcValues_nclong::print(std::ostream& os) const
 {
     for(int i = 0; i < the_number - 1; i++)
@@ -272,5 +272,5 @@ ostream& NcValues_nclong::print(ostream&
 }
 
-ostream& NcValues_long::print(ostream& os) const
+std::ostream& NcValues_long::print(std::ostream& os) const
 {
     for(int i = 0; i < the_number - 1; i++)
@@ -281,5 +281,5 @@ ostream& NcValues_long::print(ostream& o
 }
 
-ostream& NcValues_ncbyte::print(ostream& os) const
+std::ostream& NcValues_ncbyte::print(std::ostream& os) const
 {
     for(int i = 0; i < the_number - 1; i++)
@@ -290,5 +290,5 @@ ostream& NcValues_ncbyte::print(ostream&
 }
 
-ostream& NcValues_char::print(ostream& os) const
+std::ostream& NcValues_char::print(std::ostream& os) const
 {
     os << '"';
@@ -303,7 +303,7 @@ ostream& NcValues_char::print(ostream& o
 }
 
-ostream& NcValues_float::print(ostream& os) const
+std::ostream& NcValues_float::print(std::ostream& os) const
 {
-    long save=os.flags();
+    std::ostream::fmtflags save=os.flags();
     os.precision(7);
     for(int i = 0; i < the_number - 1; i++)
@@ -315,7 +315,7 @@ ostream& NcValues_float::print(ostream& 
 }
 
-ostream& NcValues_double::print(ostream& os) const
+std::ostream& NcValues_double::print(std::ostream& os) const
 {
-    long save=os.flags();
+    std::ostream::fmtflags save=os.flags();
     os.precision(15);
     for(int i = 0; i < the_number - 1; i++)