mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
-bugfix for vc++ compile
This commit is contained in:
@@ -1375,12 +1375,7 @@ bool removeFile(string file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool renameFile(string oldFile, string newFile) {
|
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());
|
int result = rename(oldFile.c_str(),newFile.c_str());
|
||||||
#endif
|
|
||||||
|
|
||||||
return (result == 0);
|
return (result == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user