more vc7 fixes and unicode fix in file.cpp
This commit is contained in:
@@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
typedef int mode_t;
|
typedef int mode_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNICODE
|
||||||
|
#include "libtorrent/storage.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// unix part
|
// unix part
|
||||||
#define _FILE_OFFSET_BITS 64
|
#define _FILE_OFFSET_BITS 64
|
||||||
@@ -71,6 +75,10 @@ BOOST_STATIC_ASSERT(sizeof(lseek(0, 0, 0)) >= 8);
|
|||||||
#define O_RANDOM 0
|
#define O_RANDOM 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef UNICODE
|
||||||
|
#include "libtorrent/storage.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace fs = boost::filesystem;
|
namespace fs = boost::filesystem;
|
||||||
|
|
||||||
|
@@ -70,6 +70,7 @@ using boost::tuples::tuple;
|
|||||||
using boost::tuples::get;
|
using boost::tuples::get;
|
||||||
using boost::tuples::make_tuple;
|
using boost::tuples::make_tuple;
|
||||||
using boost::filesystem::complete;
|
using boost::filesystem::complete;
|
||||||
|
using boost::bind;
|
||||||
|
|
||||||
// PROFILING CODE
|
// PROFILING CODE
|
||||||
|
|
||||||
@@ -1378,7 +1379,7 @@ namespace libtorrent
|
|||||||
|
|
||||||
|
|
||||||
st.num_peers = (int)std::count_if(m_connections.begin(), m_connections.end(),
|
st.num_peers = (int)std::count_if(m_connections.begin(), m_connections.end(),
|
||||||
bind(std::logical_not<bool>(), boost::bind(&peer_connection::is_connecting,
|
bind<bool>(std::logical_not<bool>(), boost::bind(&peer_connection::is_connecting,
|
||||||
boost::bind(&std::map<address,peer_connection*>::value_type::second, _1))));
|
boost::bind(&std::map<address,peer_connection*>::value_type::second, _1))));
|
||||||
|
|
||||||
st.num_complete = m_complete;
|
st.num_complete = m_complete;
|
||||||
|
Reference in New Issue
Block a user