Skip to content

Commit

Permalink
rTorrent: Bump c++ standard to 17 (#75)
Browse files Browse the repository at this point in the history
This pull request cleans up the deprecated TR1 functions and bumps the c++ standard to 17.
  • Loading branch information
stickz authored Jan 18, 2025
1 parent 77e5aaa commit 3c2ecb3
Show file tree
Hide file tree
Showing 26 changed files with 1,944 additions and 591 deletions.
962 changes: 962 additions & 0 deletions libtorrent/scripts/ax_cxx_compile_stdcxx.m4

Large diffs are not rendered by default.

106 changes: 0 additions & 106 deletions libtorrent/scripts/ax_cxx_compile_stdcxx_0x.m4

This file was deleted.

147 changes: 0 additions & 147 deletions libtorrent/scripts/ax_cxx_compile_stdcxx_11.m4

This file was deleted.

2 changes: 1 addition & 1 deletion libtorrent/src/torrent/connection_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <sys/socket.h>
#include <functional>
#include <sys/socket.h>
#include <torrent/common.h>

#ifdef USE_UDNS
Expand Down
2 changes: 1 addition & 1 deletion libtorrent/src/torrent/utils/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
#define LIBTORRENT_UTILS_LOG_H

#include <bitset>
#include <functional>
#include <string>
#include <vector>
#include <array>
#include <functional>
#include <torrent/common.h>

namespace torrent {
Expand Down
10 changes: 4 additions & 6 deletions rtorrent/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ AC_INIT(rtorrent, 0.9.8, [email protected])
AC_DEFINE(API_VERSION, 10, api version)
AC_DEFINE(STICKZ_VERSION, "0.9.8-v7.2", rtorrent stickz version)

AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_HEADERS(config.h)

AC_PROG_RANLIB
AC_PROG_CXX
AC_PROG_LIBTOOL
AC_SYS_LARGEFILE

AX_CXX_COMPILE_STDCXX(17, noext, mandatory)

RAK_CHECK_CFLAGS
RAK_CHECK_CXXFLAGS
RAK_ENABLE_DEBUG
RAK_ENABLE_EXTRA_DEBUG
RAK_ENABLE_WERROR

RAK_CHECK_CXX11
RAK_CHECK_TR1_LIB

TORRENT_DISABLE_IPV6

AC_SYS_LARGEFILE

TORRENT_CHECK_EXECINFO

TORRENT_ENABLE_ARCH
Expand Down
2 changes: 1 addition & 1 deletion rtorrent/rak/priority_queue_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#ifndef RAK_PRIORITY_QUEUE_DEFAULT_H
#define RAK_PRIORITY_QUEUE_DEFAULT_H

#include lt_tr1_functional
#include <functional>
#include <rak/allocators.h>
#include <rak/priority_queue.h>
#include <rak/timer.h>
Expand Down
Loading

0 comments on commit 3c2ecb3

Please sign in to comment.