diff options
author | Max Kellermann <max@musicpd.org> | 2018-11-19 12:49:45 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-11-19 16:33:49 +0100 |
commit | ce49d99c2f3265f2975b2cff583684bf191bbd93 (patch) | |
tree | 98fa09c94aa5d170fd3f553ac107ea2f0aa82bf4 /src/net | |
parent | 2e450bbf959e7b72894c5037a2d46523556c8b72 (diff) |
check.h: remove obsolete header
Since we switched from autotools to Meson in commit
94592c14062d5afc9482d11baa401648082022c0, we don't need to include
`config.h` early to properly enable large file support. Meson passes
the required macros on the compiler command line instead of defining
them in `config.h`.
This means we can include `config.h` at any time, whenever we want to
check its macros, and there are no ordering constraints.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/Features.hxx | 5 | ||||
-rw-r--r-- | src/net/HostParser.cxx | 1 | ||||
-rw-r--r-- | src/net/IPv4Address.cxx | 1 | ||||
-rw-r--r-- | src/net/IPv6Address.cxx | 1 | ||||
-rw-r--r-- | src/net/Init.hxx | 1 | ||||
-rw-r--r-- | src/net/Resolver.cxx | 1 | ||||
-rw-r--r-- | src/net/SocketDescriptor.hxx | 1 | ||||
-rw-r--r-- | src/net/SocketError.cxx | 1 | ||||
-rw-r--r-- | src/net/ToString.hxx | 1 |
9 files changed, 3 insertions, 10 deletions
diff --git a/src/net/Features.hxx b/src/net/Features.hxx index 59adb62c0..d90032a92 100644 --- a/src/net/Features.hxx +++ b/src/net/Features.hxx @@ -20,8 +20,7 @@ #ifndef NET_FEATURES_HXX #define NET_FEATURES_HXX -/* feature macros are defined in config.h, and this header verifies - that it has been included earlier */ -#include "check.h" +/* feature macros are defined in config.h */ +#include "config.h" #endif diff --git a/src/net/HostParser.cxx b/src/net/HostParser.cxx index 11e5f30c4..3dd6bbec6 100644 --- a/src/net/HostParser.cxx +++ b/src/net/HostParser.cxx @@ -30,7 +30,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" #include "HostParser.hxx" #include "util/CharUtil.hxx" diff --git a/src/net/IPv4Address.cxx b/src/net/IPv4Address.cxx index f14eccb13..42de7450a 100644 --- a/src/net/IPv4Address.cxx +++ b/src/net/IPv4Address.cxx @@ -27,7 +27,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" #include "IPv4Address.hxx" #include <assert.h> diff --git a/src/net/IPv6Address.cxx b/src/net/IPv6Address.cxx index 410259f82..d7861d3ec 100644 --- a/src/net/IPv6Address.cxx +++ b/src/net/IPv6Address.cxx @@ -27,7 +27,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" #include "IPv6Address.hxx" #include <assert.h> diff --git a/src/net/Init.hxx b/src/net/Init.hxx index 3058a7676..ef99e97c9 100644 --- a/src/net/Init.hxx +++ b/src/net/Init.hxx @@ -20,7 +20,6 @@ #ifndef NET_INIT_HXX #define NET_INIT_HXX -#include "check.h" #include "SocketError.hxx" #ifdef _WIN32 diff --git a/src/net/Resolver.cxx b/src/net/Resolver.cxx index c5071104c..36769a904 100644 --- a/src/net/Resolver.cxx +++ b/src/net/Resolver.cxx @@ -30,7 +30,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" #include "Resolver.hxx" #include "AddressInfo.hxx" #include "HostParser.hxx" diff --git a/src/net/SocketDescriptor.hxx b/src/net/SocketDescriptor.hxx index 2a4833dd0..3f0c284ae 100644 --- a/src/net/SocketDescriptor.hxx +++ b/src/net/SocketDescriptor.hxx @@ -30,6 +30,7 @@ #ifndef SOCKET_DESCRIPTOR_HXX #define SOCKET_DESCRIPTOR_HXX +#include "Features.hxx" #include "system/FileDescriptor.hxx" #include <type_traits> diff --git a/src/net/SocketError.cxx b/src/net/SocketError.cxx index 9d0c08301..4de9e4836 100644 --- a/src/net/SocketError.cxx +++ b/src/net/SocketError.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "SocketError.hxx" #include "util/Macros.hxx" diff --git a/src/net/ToString.hxx b/src/net/ToString.hxx index 3dbf3d45e..963f820f4 100644 --- a/src/net/ToString.hxx +++ b/src/net/ToString.hxx @@ -30,7 +30,6 @@ #ifndef NET_TO_STRING_HXX #define NET_TO_STRING_HXX -#include "check.h" #include "util/Compiler.h" #include <string> |