windows build fixes
This commit is contained in:
parent
95769f3901
commit
96adfc2ad5
|
@ -178,7 +178,7 @@ namespace libtorrent
|
|||
|
||||
// this is the link between the main thread and the
|
||||
// thread started to run the main downloader loop
|
||||
struct session_impl: boost::noncopyable, initialize_timer
|
||||
struct TORRENT_EXPORT session_impl: boost::noncopyable, initialize_timer
|
||||
, boost::enable_shared_from_this<session_impl>
|
||||
{
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace libtorrent
|
|||
{
|
||||
const int c = (std::min)(count_zero_bits(bits, N), (N * 8) - 1);
|
||||
const int m = N * 8;
|
||||
return ::log(c / float(m)) / (2.f * log(1.f - 1.f/m));
|
||||
return ::log(c / float(m)) / (2.f * ::log(1.f - 1.f/m));
|
||||
}
|
||||
|
||||
bloom_filter() { clear(); }
|
||||
|
|
|
@ -34,13 +34,14 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#define TIMESTAMP_HISTORY_HPP
|
||||
|
||||
#include "boost/cstdint.hpp"
|
||||
#include "libtorrent/config.hpp"
|
||||
#include "libtorrent/assert.hpp"
|
||||
|
||||
namespace libtorrent {
|
||||
|
||||
// timestamp history keeps a history of the lowest timestamps we've
|
||||
// seen in the last 20 minutes
|
||||
struct timestamp_history
|
||||
struct TORRENT_EXPORT timestamp_history
|
||||
{
|
||||
enum { history_size = 20 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue