Browse Source

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

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
6885f46f4b
  1. 8
      src/peeraddition.h
  2. 7
      src/peerlistwidget.h
  3. 10
      src/reverseresolution.h

8
src/peeraddition.h

@ -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

7
src/peerlistwidget.h

@ -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

10
src/reverseresolution.h

@ -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 {

Loading…
Cancel
Save