forked from organicmaps/organicmaps
Fix pragmas
This commit is contained in:
parent
9ff7df0817
commit
6f92701ec0
2 changed files with 12 additions and 3 deletions
|
@ -17,12 +17,16 @@
|
|||
#include <boost/spirit/include/phoenix_bind.hpp>
|
||||
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
#else
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/date_time/gregorian/gregorian.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
namespace osmoh
|
||||
|
|
|
@ -5,13 +5,18 @@
|
|||
#include <map>
|
||||
#include <locale>
|
||||
|
||||
#define BOOST_TEST_MODULE OpeningHours
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wshorten-64-to-32"
|
||||
#define BOOST_TEST_MODULE OpeningHours
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
#include <boost/spirit/include/qi.hpp>
|
||||
#pragma clang diagnostic pop
|
||||
#else
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
#endif
|
||||
|
||||
#include <boost/spirit/include/qi.hpp>
|
||||
|
||||
template <typename Char, typename Parser>
|
||||
bool test(Char const* in, Parser const& p, bool full_match = true)
|
||||
|
|
Loading…
Add table
Reference in a new issue