diff options
author | vng <viktor.govako@gmail.com> | 2012-09-12 16:43:41 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:43:17 +0300 |
commit | 2799dc81d1ab860ecf5e6c533eb814937d859852 (patch) | |
tree | b0625e8b6a3a7ba8328bd34801d1fc1074be951d /search | |
parent | 3c934528beb837966719347a65de558ee1da35c8 (diff) |
Add conditional compilation for hack.
Diffstat (limited to 'search')
-rw-r--r-- | search/feature_offset_match.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/search/feature_offset_match.hpp b/search/feature_offset_match.hpp index 28b1633f9b..feb4bd77d8 100644 --- a/search/feature_offset_match.hpp +++ b/search/feature_offset_match.hpp @@ -13,6 +13,7 @@ #include "../std/unordered_set.hpp" #include "../std/utility.hpp" #include "../std/vector.hpp" +#include "../std/target_os.hpp" //#include "../sparsehash/dense_hash_set.hpp" @@ -110,9 +111,11 @@ void FullMatchInTrie(TrieIterator const & trieRoot, if (!pIter || !bFullEdgeMatched || symbolsMatched != s.size()) return; +#if defined(OMIM_OS_IPHONE) && !defined(__clang__) // Here is the dummy mutex to avoid mysterious iOS GCC-LLVM bug here. static threads::Mutex dummyM; threads::MutexGuard dummyG(dummyM); +#endif ASSERT_EQUAL ( symbolsMatched, s.size(), () ); for (size_t i = 0; i < pIter->m_value.size(); ++i) |