attempted msvc-10.0 build fix
This commit is contained in:
@@ -290,7 +290,7 @@ list get_download_queue(torrent_handle& handle)
|
|||||||
block_info["num_peers"] = i->blocks[k].num_peers;
|
block_info["num_peers"] = i->blocks[k].num_peers;
|
||||||
block_info["bytes_progress"] = i->blocks[k].bytes_progress;
|
block_info["bytes_progress"] = i->blocks[k].bytes_progress;
|
||||||
block_info["block_size"] = i->blocks[k].block_size;
|
block_info["block_size"] = i->blocks[k].block_size;
|
||||||
block_info["peer"] = make_tuple(
|
block_info["peer"] = boost::python::make_tuple(
|
||||||
boost::lexical_cast<std::string>(i->blocks[k].peer().address()), i->blocks[k].peer().port());
|
boost::lexical_cast<std::string>(i->blocks[k].peer().address()), i->blocks[k].peer().port());
|
||||||
block_list.append(block_info);
|
block_list.append(block_info);
|
||||||
}
|
}
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
#include <string.h> // for strlen
|
#include <string.h> // for strlen
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <algorithm> // for std::min
|
#include <algorithm> // for std::min
|
||||||
|
#include <iterator> // for back_inserter
|
||||||
|
|
||||||
char const* esc(char const* code)
|
char const* esc(char const* code)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user