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
path: root/search
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@mapswithme.com>2015-08-24 14:24:17 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:02:19 +0300
commita6c9e14ba50f052609ad92599eaf62bf1595c7cf (patch)
treedc59c078f2b06d2a41b47e705187ea92915bd529 /search
parenta8ba11fd41f00c925ab58f47f9b8a89094baf7d8 (diff)
[linux] Build fix.
Diffstat (limited to 'search')
-rw-r--r--search/intermediate_result.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/search/intermediate_result.cpp b/search/intermediate_result.cpp
index f9b764a1d3..ec040f3adb 100644
--- a/search/intermediate_result.cpp
+++ b/search/intermediate_result.cpp
@@ -1,4 +1,7 @@
+#ifndef OMIM_OS_LINUX
+// Lib opening_hours is not built for Linux since stdlib doesn't have required functions.
#include "3party/opening_hours/osm_time_range.hpp"
+#endif
#include "intermediate_result.hpp"
#include "geometry_utils.hpp"
@@ -149,8 +152,12 @@ PreResult2::PreResult2(m2::PointD const & pt, string const & str, uint32_t type)
void PreResult2::ProcessMetadata(feature::Metadata const & meta)
{
m_metadata.m_cuisine = meta.Get(feature::Metadata::FMD_CUISINE);
+
+#ifndef OMIM_OS_LINUX
+ // Lib opening_hours is not built for Linux since stdlib doesn't have required functions.
m_metadata.m_isClosed =
- OSMTimeRange(meta.Get(feature::Metadata::FMD_OPEN_HOURS))(time(nullptr)).IsClosed();
+ OSMTimeRange(meta.Get(feature::Metadata::FMD_OPEN_HOURS))(time(nullptr)).IsClosed();
+#endif
m_metadata.m_stars = 0;
strings::to_int(meta.Get(feature::Metadata::FMD_STARS), m_metadata.m_stars);