fix windows build

This commit is contained in:
Arvid Norberg 2011-11-13 05:04:05 +00:00
parent 4d49d0f20d
commit 95769f3901
2 changed files with 2 additions and 1 deletions

View File

@ -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(); }

View File

@ -101,6 +101,7 @@ POSSIBILITY OF SUCH DAMAGE.
#pragma warning(disable:4996)
// 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup
#pragma warning(disable: 4996)
#define strdup _strdup
# if defined(TORRENT_BUILDING_SHARED)
# define TORRENT_EXPORT __declspec(dllexport)