more vc7 fixes and unicode fix in file.cpp
This commit is contained in:
parent
01820e5579
commit
c64393cb0e
|
@ -43,6 +43,10 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
typedef int mode_t;
|
||||
#endif
|
||||
|
||||
#ifdef UNICODE
|
||||
#include "libtorrent/storage.hpp"
|
||||
#endif
|
||||
|
||||
#else
|
||||
// unix part
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
|
@ -71,6 +75,10 @@ BOOST_STATIC_ASSERT(sizeof(lseek(0, 0, 0)) >= 8);
|
|||
#define O_RANDOM 0
|
||||
#endif
|
||||
|
||||
#ifdef UNICODE
|
||||
#include "libtorrent/storage.hpp"
|
||||
#endif
|
||||
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ using boost::tuples::tuple;
|
|||
using boost::tuples::get;
|
||||
using boost::tuples::make_tuple;
|
||||
using boost::filesystem::complete;
|
||||
using boost::bind;
|
||||
|
||||
// PROFILING CODE
|
||||
|
||||
|
@ -1378,7 +1379,7 @@ namespace libtorrent
|
|||
|
||||
|
||||
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))));
|
||||
|
||||
st.num_complete = m_complete;
|
||||
|
|
Loading…
Reference in New Issue