Fix compilation with libtorrent 1.x.x.

This commit is contained in:
sledgehammer999
2013-05-07 22:57:18 +03:00
parent 4f667c6e7d
commit 94b58ca229
19 changed files with 99 additions and 99 deletions

View File

@@ -161,7 +161,7 @@ void TorrentSpeedMonitor::getSamples()
std::vector<torrent_handle>::const_iterator itend = torrents.end();
for ( ; it != itend; ++it) {
try {
#if LIBTORRENT_VERSION_MINOR > 15
#if LIBTORRENT_VERSION_MINOR > 15 || LIBTORRENT_VERSION_MAJOR > 0
torrent_status st = it->status(0x0);
if (!st.paused) {
#else