From 7ddffbac64cde45fa9aeef1f14d72c3d7988247d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 6 Feb 2009 17:59:49 +0000 Subject: [PATCH] fixed windows build --- src/disk_io_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 8e6ee06d7..8409ab677 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -43,7 +43,7 @@ POSSIBILITY OF SUCH DAMAGE. #include "libtorrent/time.hpp" #endif -#ifndef TORRENT_DISABLE_MLOCK +#if !defined TORRENT_DISABLE_MLOCK && !defined TORRENT_WINDOWS #include #endif @@ -819,7 +819,7 @@ namespace libtorrent for (int i = 0; i < blocks_in_piece; ++i) { TORRENT_ASSERT(p->blocks[i]); - ctx.update((char const*)p->blocks[i], std::min(piece_size, m_block_size)); + ctx.update((char const*)p->blocks[i], (std::min)(piece_size, m_block_size)); piece_size -= m_block_size; } h = ctx.final();