*** empty log message ***
This commit is contained in:
@@ -38,6 +38,13 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#include "libtorrent/peer_id.hpp"
|
#include "libtorrent/peer_id.hpp"
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
using ::strlen;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
|
|
||||||
|
11
src/file.cpp
11
src/file.cpp
@@ -30,6 +30,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
#include <boost/filesystem/operations.hpp>
|
#include <boost/filesystem/operations.hpp>
|
||||||
#include <boost/filesystem/fstream.hpp>
|
#include <boost/filesystem/fstream.hpp>
|
||||||
|
|
||||||
@@ -64,7 +66,11 @@ namespace libtorrent
|
|||||||
impl(): m_open_mode(0) {}
|
impl(): m_open_mode(0) {}
|
||||||
|
|
||||||
impl(fs::path const& path, int mode)
|
impl(fs::path const& path, int mode)
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
|
: m_file(path.native_file_string().c_str(), map_open_mode(path, mode))
|
||||||
|
#else
|
||||||
: m_file(path, map_open_mode(path, mode))
|
: m_file(path, map_open_mode(path, mode))
|
||||||
|
#endif
|
||||||
, m_open_mode(mode)
|
, m_open_mode(mode)
|
||||||
{
|
{
|
||||||
assert(mode == mode_in ||mode == mode_out);
|
assert(mode == mode_in ||mode == mode_out);
|
||||||
@@ -142,8 +148,11 @@ namespace libtorrent
|
|||||||
else
|
else
|
||||||
return static_cast<std::streamoff>(m_file.tellp());
|
return static_cast<std::streamoff>(m_file.tellp());
|
||||||
}
|
}
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
|
std::fstream m_file;
|
||||||
|
#else
|
||||||
fs::fstream m_file;
|
fs::fstream m_file;
|
||||||
|
#endif
|
||||||
int m_open_mode;
|
int m_open_mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -60,8 +60,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "libtorrent/file.hpp"
|
#include "libtorrent/file.hpp"
|
||||||
#include "libtorrent/invariant_check.hpp"
|
#include "libtorrent/invariant_check.hpp"
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||||
#define for if (false) {} else for
|
#define for if (false) {} else for
|
||||||
|
namespace std
|
||||||
|
{
|
||||||
|
using ::srand;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user