- Restore compatiblity with recent libboost (broken by last commit)

This commit is contained in:
Christophe Dumez 2009-11-28 22:22:35 +00:00
parent 9323660c79
commit 6885f46f4b
3 changed files with 24 additions and 1 deletions

View file

@ -36,7 +36,15 @@
#include <QMessageBox> #include <QMessageBox>
#include "ui_peer.h" #include "ui_peer.h"
#include <libtorrent/session.hpp> #include <libtorrent/session.hpp>
#include <boost/version.hpp>
#if BOOST_VERSION < 103500
#include <libtorrent/asio/ip/tcp.hpp> #include <libtorrent/asio/ip/tcp.hpp>
#else
#include <boost/asio/ip/tcp.hpp>
#endif
using namespace libtorrent;
class PeerAdditionDlg: public QDialog, private Ui::addPeerDialog { class PeerAdditionDlg: public QDialog, private Ui::addPeerDialog {
Q_OBJECT Q_OBJECT

View file

@ -45,6 +45,13 @@ class PeerListDelegate;
class ReverseResolution; class ReverseResolution;
class PropertiesWidget; 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 { class PeerListWidget : public QTreeView {
Q_OBJECT Q_OBJECT

View file

@ -36,9 +36,17 @@
#include <QWaitCondition> #include <QWaitCondition>
#include <QMutex> #include <QMutex>
#include <QList> #include <QList>
#include <libtorrent/asio/ip/tcp.hpp>
#include "misc.h" #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 #define MAX_THREADS 20
class ReverseResolutionST: public QThread { class ReverseResolutionST: public QThread {