forked from premiere/premiere-libtorrent
deprecated flag should not affect ABI
This commit is contained in:
parent
edade10561
commit
f73fe335e2
|
@ -1622,11 +1622,17 @@ namespace libtorrent
|
|||
#ifndef TORRENT_NO_DEPRECATE
|
||||
upload_dht_protocol,
|
||||
upload_tracker_protocol,
|
||||
#else
|
||||
deprecated1,
|
||||
deprecated2,
|
||||
#endif
|
||||
download_ip_protocol,
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
download_dht_protocol,
|
||||
download_tracker_protocol,
|
||||
#else
|
||||
deprecated3,
|
||||
deprecated4,
|
||||
#endif
|
||||
num_channels
|
||||
};
|
||||
|
|
|
@ -398,14 +398,18 @@ namespace libtorrent {
|
|||
transferred[download_payload] = s[download_payload].counter();
|
||||
transferred[download_protocol] = s[download_protocol].counter();
|
||||
transferred[upload_ip_protocol] = s[upload_ip_protocol].counter();
|
||||
transferred[download_ip_protocol] = s[download_ip_protocol].counter();
|
||||
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
transferred[upload_dht_protocol] = 0;
|
||||
transferred[upload_tracker_protocol] = 0;
|
||||
#endif
|
||||
transferred[download_ip_protocol] = s[download_ip_protocol].counter();
|
||||
#ifndef TORRENT_NO_DEPRECATE
|
||||
transferred[download_dht_protocol] = 0;
|
||||
transferred[download_tracker_protocol] = 0;
|
||||
#else
|
||||
transferred[deprecated1] = 0;
|
||||
transferred[deprecated2] = 0;
|
||||
transferred[deprecated3] = 0;
|
||||
transferred[deprecated4] = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue