summaryrefslogtreecommitdiff
path: root/net/netmap/files/patch-belgolib__files.c
blob: 39854e8c92caafb89167072bcd3bb6e0accafadb (plain) (blame)
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
--- belgolib/files.c.orig	2010-01-06 08:00:52.000000000 +0900
+++ belgolib/files.c	2011-11-23 22:22:36.000000000 +0900
@@ -17,8 +17,8 @@
 
 Infile::Infile() : ifstream() { }
 
-Infile::Infile(const string& file_name, int mode, bool fatal)
-    : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
+Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
+    : ifstream(file_name.c_str(), (std::ios_base::openmode)mode)
 {
 
     if(cdb>d_list)
@@ -39,7 +39,7 @@
 }
 
 
-int Infile::Open(const string & file_name, int mode, bool fatal)
+int Infile::Open(const string & file_name, ios::openmode mode, bool fatal)
 {
     
     if(cdb>d_list)
@@ -49,7 +49,7 @@
 	//file is open, close it first
 	close();
 
-    open(file_name.c_str(), (std::_Ios_Openmode)mode);
+    open(file_name.c_str(), (std::ios_base::openmode)mode);
 
     if(int error_nr = check_open())  { 
 	if(cdb>d_list)