attempt to fix msvc build

This commit is contained in:
arvidn 2015-08-18 21:40:22 +02:00
parent 26fecaf037
commit a3c4a0a3e6
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;