Commit 309d7a55 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Added std:: to some io function

Should have gone with 702cea4b
parent abd59ab2
......@@ -51,9 +51,9 @@ size_t IFile::llread(char*ptr,size_t s) {
plumed_merror("file " + getPath() + ": trying to use a gz file without zlib being linked");
#endif
} else {
r=fread(ptr,1,s,fp);
if(feof(fp)) eof=true;
if(ferror(fp)) err=true;
r=std::fread(ptr,1,s,fp);
if(std::feof(fp)) eof=true;
if(std::ferror(fp)) err=true;
}
return r;
}
......
......@@ -55,7 +55,7 @@ size_t OFile::llwrite(const char*ptr,size_t s) {
plumed_merror("file " + getPath() + ": trying to use a gz file without zlib being linked");
#endif
} else {
r=fwrite(ptr,1,s,fp);
r=std::fwrite(ptr,1,s,fp);
}
}
// This barrier is apparently useless since it comes
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment