attempt to fix msvc build
This commit is contained in:
parent
26fecaf037
commit
a3c4a0a3e6
|
@ -70,7 +70,8 @@ namespace libtorrent
|
||||||
void set_utp_stream_logging(bool enable);
|
void set_utp_stream_logging(bool enable);
|
||||||
#endif
|
#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;
|
struct utp_socket_manager;
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,8 @@ enum
|
||||||
// into account. if lhs is close to UINT_MAX and rhs
|
// into account. if lhs is close to UINT_MAX and rhs
|
||||||
// is close to 0, lhs is assumed to have wrapped and
|
// is close to 0, lhs is assumed to have wrapped and
|
||||||
// considered smaller
|
// 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
|
// distance walking from lhs to rhs, downwards
|
||||||
boost::uint32_t dist_down = (lhs - rhs) & mask;
|
boost::uint32_t dist_down = (lhs - rhs) & mask;
|
||||||
|
|
Loading…
Reference in New Issue