Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-07-03 04:58:55 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:40:31 +0300
commitfc2880450e5deec0563fcf65c2419a2908f4d77b (patch)
treedbcd4fd0b8ccd73a76883cdfeeaef996a16925e4 /platform
parente6f8e79e8d566091fff5b88ae92a9f2b4c047a55 (diff)
Fix platform compilation.
Diffstat (limited to 'platform')
-rw-r--r--platform/platform_mac.mm6
-rw-r--r--platform/platform_qt.cpp7
-rw-r--r--platform/platform_unix_impl.cpp6
3 files changed, 3 insertions, 16 deletions
diff --git a/platform/platform_mac.mm b/platform/platform_mac.mm
index 931cb19fa2..b1efe1c197 100644
--- a/platform/platform_mac.mm
+++ b/platform/platform_mac.mm
@@ -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;
diff --git a/platform/platform_qt.cpp b/platform/platform_qt.cpp
index 743f6d350f..fdce4de879 100644
--- a/platform/platform_qt.cpp
+++ b/platform/platform_qt.cpp
@@ -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
diff --git a/platform/platform_unix_impl.cpp b/platform/platform_unix_impl.cpp
index c7ebdf56e7..c1819a0eee 100644
--- a/platform/platform_unix_impl.cpp
+++ b/platform/platform_unix_impl.cpp
@@ -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