Fixes #317: Make use of ASIO_STANDALONE when using standalone asio in order to compile on older asio versions without boost

This commit is contained in:
eidheim 2021-03-26 10:02:04 +01:00
commit 1bb89e1e8e
6 changed files with 8 additions and 8 deletions

View file

@ -50,14 +50,14 @@ namespace SimpleWeb {
}
};
} // namespace SimpleWeb
#ifndef USE_STANDALONE_ASIO
#ifndef ASIO_STANDALONE
namespace boost {
#endif
namespace asio {
template <>
struct is_match_condition<SimpleWeb::HeaderEndMatch> : public std::true_type {};
} // namespace asio
#ifndef USE_STANDALONE_ASIO
#ifndef ASIO_STANDALONE
} // namespace boost
#endif