mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 05:38:06 -06:00
Fix compilation with libtorrent 1.x.x v2
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include "torrentcreatorthread.h"
|
||||
#include "fs_utils.h"
|
||||
|
||||
#if LIBTORRENT_VERSION_MINOR < 16 && LIBTORRENT_VERSION_MAJOR < 1
|
||||
#if LIBTORRENT_VERSION_NUM < 001600
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <boost/filesystem/fstream.hpp>
|
||||
@@ -53,13 +53,13 @@
|
||||
#include <fstream>
|
||||
|
||||
using namespace libtorrent;
|
||||
#if LIBTORRENT_VERSION_MINOR < 16 && LIBTORRENT_VERSION_MAJOR < 1
|
||||
#if LIBTORRENT_VERSION_NUM < 001600
|
||||
using namespace boost::filesystem;
|
||||
#endif
|
||||
|
||||
// do not include files and folders whose
|
||||
// name starts with a .
|
||||
#if LIBTORRENT_VERSION_MINOR >= 16 || LIBTORRENT_VERSION_MAJOR > 0
|
||||
#if LIBTORRENT_VERSION_NUM >= 001600
|
||||
bool file_filter(std::string const& f)
|
||||
{
|
||||
if (filename(f)[0] == '.') return false;
|
||||
@@ -85,7 +85,7 @@ void TorrentCreatorThread::create(QString _input_path, QString _save_path, QStri
|
||||
comment = _comment;
|
||||
is_private = _is_private;
|
||||
piece_size = _piece_size;
|
||||
#if LIBTORRENT_VERSION_MINOR < 16 && LIBTORRENT_VERSION_MAJOR < 1
|
||||
#if LIBTORRENT_VERSION_NUM < 001600
|
||||
path::default_name_check(no_check);
|
||||
#endif
|
||||
abort = false;
|
||||
|
||||
Reference in New Issue
Block a user