mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 21:38:51 +03:00
- Restore compatiblity with recent libboost (broken by last commit)
This commit is contained in:
parent
9323660c79
commit
6885f46f4b
3 changed files with 24 additions and 1 deletions
|
@ -36,7 +36,15 @@
|
|||
#include <QMessageBox>
|
||||
#include "ui_peer.h"
|
||||
#include <libtorrent/session.hpp>
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#if BOOST_VERSION < 103500
|
||||
#include <libtorrent/asio/ip/tcp.hpp>
|
||||
#else
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#endif
|
||||
|
||||
using namespace libtorrent;
|
||||
|
||||
class PeerAdditionDlg: public QDialog, private Ui::addPeerDialog {
|
||||
Q_OBJECT
|
||||
|
|
|
@ -45,6 +45,13 @@ class PeerListDelegate;
|
|||
class ReverseResolution;
|
||||
class PropertiesWidget;
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#if BOOST_VERSION < 103500
|
||||
#include <libtorrent/asio/ip/tcp.hpp>
|
||||
#else
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#endif
|
||||
|
||||
class PeerListWidget : public QTreeView {
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -36,9 +36,17 @@
|
|||
#include <QWaitCondition>
|
||||
#include <QMutex>
|
||||
#include <QList>
|
||||
#include <libtorrent/asio/ip/tcp.hpp>
|
||||
#include "misc.h"
|
||||
|
||||
#include <boost/version.hpp>
|
||||
#if BOOST_VERSION < 103500
|
||||
#include <libtorrent/asio/ip/tcp.hpp>
|
||||
#else
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#endif
|
||||
|
||||
using namespace libtorrent;
|
||||
|
||||
#define MAX_THREADS 20
|
||||
|
||||
class ReverseResolutionST: public QThread {
|
||||
|
|
Loading…
Reference in a new issue