xplatform open
This commit is contained in:
parent
3f11009766
commit
002f86d657
1 changed files with 4 additions and 0 deletions
|
@ -1305,7 +1305,11 @@ BinaryMapFile* initBinaryMapFile(std::string inputName) {
|
||||||
openFiles.erase(iterator);
|
openFiles.erase(iterator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_WIN32)
|
||||||
int fileDescriptor = open(inputName.c_str(), O_RDONLY | O_BINARY);
|
int fileDescriptor = open(inputName.c_str(), O_RDONLY | O_BINARY);
|
||||||
|
#else
|
||||||
|
int fileDescriptor = open(inputName.c_str(), O_RDONLY);
|
||||||
|
#endif
|
||||||
if (fileDescriptor < 0) {
|
if (fileDescriptor < 0) {
|
||||||
osmand_log_print(LOG_ERROR, "File could not be open to read from C : %s", inputName.c_str());
|
osmand_log_print(LOG_ERROR, "File could not be open to read from C : %s", inputName.c_str());
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue