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/client | |
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/client')
-rw-r--r-- | src/client/Client.cxx | 4 | ||||
-rw-r--r-- | src/client/Client.hxx | 1 | ||||
-rw-r--r-- | src/client/ClientEvent.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientExpire.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientFile.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientGlobal.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientIdle.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientInternal.hxx | 1 | ||||
-rw-r--r-- | src/client/ClientList.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientProcess.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientRead.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientSubscribe.cxx | 1 | ||||
-rw-r--r-- | src/client/ClientWrite.cxx | 1 | ||||
-rw-r--r-- | src/client/Listener.cxx | 2 | ||||
-rw-r--r-- | src/client/Listener.hxx | 1 | ||||
-rw-r--r-- | src/client/Response.cxx | 1 | ||||
-rw-r--r-- | src/client/Response.hxx | 1 |
17 files changed, 3 insertions, 18 deletions
diff --git a/src/client/Client.cxx b/src/client/Client.cxx index 017fa34b7..dc34dccb1 100644 --- a/src/client/Client.cxx +++ b/src/client/Client.cxx @@ -17,11 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" -#include "util/Domain.hxx" #include "Partition.hxx" #include "Instance.hxx" +#include "util/Domain.hxx" +#include "config.h" const Domain client_domain("client"); diff --git a/src/client/Client.hxx b/src/client/Client.hxx index d1db60c66..dafb961af 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -20,7 +20,6 @@ #ifndef MPD_CLIENT_H #define MPD_CLIENT_H -#include "check.h" #include "ClientMessage.hxx" #include "command/CommandListBuilder.hxx" #include "tag/Mask.hxx" diff --git a/src/client/ClientEvent.cxx b/src/client/ClientEvent.cxx index 389a40b3e..c2220e67e 100644 --- a/src/client/ClientEvent.cxx +++ b/src/client/ClientEvent.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "Client.hxx" #include "Log.hxx" diff --git a/src/client/ClientExpire.cxx b/src/client/ClientExpire.cxx index db9951694..5ba706c00 100644 --- a/src/client/ClientExpire.cxx +++ b/src/client/ClientExpire.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" #include "Log.hxx" diff --git a/src/client/ClientFile.cxx b/src/client/ClientFile.cxx index e2652ab8d..34017774a 100644 --- a/src/client/ClientFile.cxx +++ b/src/client/ClientFile.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "Client.hxx" #include "protocol/Ack.hxx" #include "fs/Path.hxx" diff --git a/src/client/ClientGlobal.cxx b/src/client/ClientGlobal.cxx index 13a72f0ff..e23a0fb49 100644 --- a/src/client/ClientGlobal.cxx +++ b/src/client/ClientGlobal.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" #include "config/Data.hxx" diff --git a/src/client/ClientIdle.cxx b/src/client/ClientIdle.cxx index c7fa3b85c..18ff6ae35 100644 --- a/src/client/ClientIdle.cxx +++ b/src/client/ClientIdle.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" #include "Response.hxx" #include "Idle.hxx" diff --git a/src/client/ClientInternal.hxx b/src/client/ClientInternal.hxx index 948cb1e05..87a1f403b 100644 --- a/src/client/ClientInternal.hxx +++ b/src/client/ClientInternal.hxx @@ -20,7 +20,6 @@ #ifndef MPD_CLIENT_INTERNAL_HXX #define MPD_CLIENT_INTERNAL_HXX -#include "check.h" #include "Client.hxx" #include "command/CommandResult.hxx" diff --git a/src/client/ClientList.cxx b/src/client/ClientList.cxx index f10bbd546..da95858d2 100644 --- a/src/client/ClientList.cxx +++ b/src/client/ClientList.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientList.hxx" #include "ClientInternal.hxx" #include "util/DeleteDisposer.hxx" diff --git a/src/client/ClientProcess.cxx b/src/client/ClientProcess.cxx index 3f7c7d282..547aa8c71 100644 --- a/src/client/ClientProcess.cxx +++ b/src/client/ClientProcess.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" #include "protocol/Result.hxx" #include "command/AllCommands.hxx" diff --git a/src/client/ClientRead.cxx b/src/client/ClientRead.cxx index c48734b46..5a0fb2d81 100644 --- a/src/client/ClientRead.cxx +++ b/src/client/ClientRead.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" #include "Partition.hxx" #include "Instance.hxx" diff --git a/src/client/ClientSubscribe.cxx b/src/client/ClientSubscribe.cxx index a9fa91669..23a40eba7 100644 --- a/src/client/ClientSubscribe.cxx +++ b/src/client/ClientSubscribe.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ClientInternal.hxx" #include "Partition.hxx" #include "Idle.hxx" diff --git a/src/client/ClientWrite.cxx b/src/client/ClientWrite.cxx index 52a47aca9..9bc3ec0c4 100644 --- a/src/client/ClientWrite.cxx +++ b/src/client/ClientWrite.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "Client.hxx" #include <string.h> diff --git a/src/client/Listener.cxx b/src/client/Listener.cxx index a607379b8..3ae39d388 100644 --- a/src/client/Listener.cxx +++ b/src/client/Listener.cxx @@ -17,12 +17,12 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "Listener.hxx" #include "Client.hxx" #include "Permission.hxx" #include "net/UniqueSocketDescriptor.hxx" #include "net/SocketAddress.hxx" +#include "config.h" static unsigned GetPermissions(SocketAddress address, int uid) noexcept diff --git a/src/client/Listener.hxx b/src/client/Listener.hxx index d889b9d1c..79b0b3f1f 100644 --- a/src/client/Listener.hxx +++ b/src/client/Listener.hxx @@ -20,7 +20,6 @@ #ifndef MPD_CLIENT_LISTENER_HXX #define MPD_CLIENT_LISTENER_HXX -#include "check.h" #include "event/ServerSocket.hxx" struct Partition; diff --git a/src/client/Response.cxx b/src/client/Response.cxx index fa204c47c..188e933bf 100644 --- a/src/client/Response.cxx +++ b/src/client/Response.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "Response.hxx" #include "Client.hxx" #include "util/FormatString.hxx" diff --git a/src/client/Response.hxx b/src/client/Response.hxx index 40688793a..eeae68b4b 100644 --- a/src/client/Response.hxx +++ b/src/client/Response.hxx @@ -20,7 +20,6 @@ #ifndef MPD_RESPONSE_HXX #define MPD_RESPONSE_HXX -#include "check.h" #include "protocol/Ack.hxx" #include "util/Compiler.h" |