Merge pull request #97 from arvidn/fix-msvc-build

attempt to fix msvc build
This commit is contained in:
Arvid Norberg 2015-08-18 22:41:43 +02:00
commit 3aa63d3f27
2 changed files with 4 additions and 2 deletions

View File

@ -70,7 +70,8 @@ namespace libtorrent
void set_utp_stream_logging(bool enable);
#endif
bool compare_less_wrap(boost::uint32_t lhs, boost::uint32_t rhs, boost::uint32_t mask);
TORRENT_EXTRA_EXPORT bool compare_less_wrap(boost::uint32_t lhs
, boost::uint32_t rhs, boost::uint32_t mask);
struct utp_socket_manager;

View File

@ -159,7 +159,8 @@ enum
// into account. if lhs is close to UINT_MAX and rhs
// is close to 0, lhs is assumed to have wrapped and
// considered smaller
TORRENT_EXTRA_EXPORT bool compare_less_wrap(boost::uint32_t lhs, boost::uint32_t rhs, boost::uint32_t mask)
TORRENT_EXTRA_EXPORT bool compare_less_wrap(boost::uint32_t lhs
, boost::uint32_t rhs, boost::uint32_t mask)
{
// distance walking from lhs to rhs, downwards
boost::uint32_t dist_down = (lhs - rhs) & mask;