-bugfix for vc++ compile
This commit is contained in:
parent
d0a95b1ff5
commit
b3951b3940
|
@ -1375,12 +1375,7 @@ bool removeFile(string file) {
|
|||
}
|
||||
|
||||
bool renameFile(string oldFile, string newFile) {
|
||||
#ifdef WIN32
|
||||
int result = _rename(oldFile.c_str(),newFile.c_str());
|
||||
#else
|
||||
int result = rename(oldFile.c_str(),newFile.c_str());
|
||||
#endif
|
||||
|
||||
return (result == 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue