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

7
src/peerlistwidget.h

@ -45,6 +45,13 @@ class PeerListDelegate; @@ -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

10
src/reverseresolution.h

@ -36,9 +36,17 @@ @@ -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…
Cancel
Save