check.h: remove obsolete header

Since we switched from autotools to Meson in commit
94592c1406, 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.
This commit is contained in:
Max Kellermann
2018-11-19 12:49:45 +01:00
parent 2e450bbf95
commit ce49d99c2f
725 changed files with 68 additions and 888 deletions

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "EpollFD.hxx"
#include "Error.hxx"

View File

@@ -30,7 +30,6 @@
#ifndef EPOLL_FD_HXX
#define EPOLL_FD_HXX
#include "check.h"
#include "UniqueFileDescriptor.hxx"
#include <assert.h>

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "EventFD.hxx"
#include "system/Error.hxx"
#include "util/Compiler.h"

View File

@@ -30,7 +30,6 @@
#ifndef EVENT_FD_HXX
#define EVENT_FD_HXX
#include "check.h"
#include "UniqueFileDescriptor.hxx"
/**

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "EventPipe.hxx"
#include "FileDescriptor.hxx"
#include "system/Error.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_EVENT_PIPE_HXX
#define MPD_EVENT_PIPE_HXX
#include "check.h"
/**
* A pipe that can be used to trigger an event to the read side.
*

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "FatalError.hxx"
#include "util/Domain.hxx"
#include "LogV.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_FATAL_ERROR_HXX
#define MPD_FATAL_ERROR_HXX
#include "check.h"
#include "util/Compiler.h"
#ifdef _WIN32

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "FileDescriptor.hxx"
#include <assert.h>

View File

@@ -30,7 +30,6 @@
#ifndef FILE_DESCRIPTOR_HXX
#define FILE_DESCRIPTOR_HXX
#include "check.h"
#include "util/Compiler.h"
#include <utility>

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Open.hxx"
#include "Error.hxx"
#include "UniqueFileDescriptor.hxx"

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "SignalFD.hxx"
#include "Error.hxx"

View File

@@ -30,7 +30,6 @@
#ifndef SIGNAL_FD_HXX
#define SIGNAL_FD_HXX
#include "check.h"
#include "UniqueFileDescriptor.hxx"
#include <signal.h>