forked from premiere/premiere-libtorrent
*** empty log message ***
This commit is contained in:
parent
c3bbc79c22
commit
87222ebf3f
|
@ -38,6 +38,13 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
|
||||
#include "libtorrent/peer_id.hpp"
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||
namespace std
|
||||
{
|
||||
using ::strlen;
|
||||
}
|
||||
#endif
|
||||
|
||||
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/fstream.hpp>
|
||||
|
||||
|
@ -64,7 +66,11 @@ namespace libtorrent
|
|||
impl(): m_open_mode(0) {}
|
||||
|
||||
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))
|
||||
#endif
|
||||
, m_open_mode(mode)
|
||||
{
|
||||
assert(mode == mode_in ||mode == mode_out);
|
||||
|
@ -142,8 +148,11 @@ namespace libtorrent
|
|||
else
|
||||
return static_cast<std::streamoff>(m_file.tellp());
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||
std::fstream m_file;
|
||||
#else
|
||||
fs::fstream m_file;
|
||||
#endif
|
||||
int m_open_mode;
|
||||
};
|
||||
|
||||
|
|
|
@ -60,8 +60,12 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||
#include "libtorrent/file.hpp"
|
||||
#include "libtorrent/invariant_check.hpp"
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1300
|
||||
#define for if (false) {} else for
|
||||
namespace std
|
||||
{
|
||||
using ::srand;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue