forked from premiere/premiere-libtorrent
fix windows build
This commit is contained in:
parent
4d49d0f20d
commit
95769f3901
|
@ -66,7 +66,7 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
const int c = (std::min)(count_zero_bits(bits, N), (N * 8) - 1);
|
const int c = (std::min)(count_zero_bits(bits, N), (N * 8) - 1);
|
||||||
const int m = N * 8;
|
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(); }
|
bloom_filter() { clear(); }
|
||||||
|
|
|
@ -101,6 +101,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
#pragma warning(disable:4996)
|
#pragma warning(disable:4996)
|
||||||
// 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup
|
// 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup
|
||||||
#pragma warning(disable: 4996)
|
#pragma warning(disable: 4996)
|
||||||
|
#define strdup _strdup
|
||||||
|
|
||||||
# if defined(TORRENT_BUILDING_SHARED)
|
# if defined(TORRENT_BUILDING_SHARED)
|
||||||
# define TORRENT_EXPORT __declspec(dllexport)
|
# define TORRENT_EXPORT __declspec(dllexport)
|
||||||
|
|
Loading…
Reference in New Issue