forked from organicmaps/organicmaps-tmp
Fix platform compilation.
This commit is contained in:
parent
e6f8e79e8d
commit
fc2880450e
3 changed files with 3 additions and 16 deletions
|
@ -69,12 +69,6 @@ Platform::~Platform()
|
|||
{
|
||||
}
|
||||
|
||||
bool Platform::IsFileExistsByFullPath(string const & filePath)
|
||||
{
|
||||
struct stat s;
|
||||
return stat(filePath.c_str(), &s) == 0;
|
||||
}
|
||||
|
||||
int Platform::CpuCores() const
|
||||
{
|
||||
int mib[2], numCPU = 0;
|
||||
|
|
|
@ -17,13 +17,6 @@ ModelReader * Platform::GetReader(string const & file) const
|
|||
READER_CHUNK_LOG_SIZE, READER_CHUNK_LOG_COUNT);
|
||||
}
|
||||
|
||||
bool Platform::GetFileSizeByFullPath(string const & filePath, uint64_t & size)
|
||||
{
|
||||
QFileInfo f(filePath.c_str());
|
||||
size = static_cast<uint64_t>(f.size());
|
||||
return size != 0;
|
||||
}
|
||||
|
||||
bool Platform::GetFileSizeByName(string const & fileName, uint64_t & size) const
|
||||
{
|
||||
try
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef OMIM_OS_ANDROID
|
||||
#include <sys/vfs.h>
|
||||
#else
|
||||
#if defined(OMIM_OS_MAC) || defined(OMIM_OS_IPHONE)
|
||||
#include <sys/mount.h>
|
||||
#else
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue