mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 06:01:17 +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) {
|
||||
#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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user