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:
@@ -27,7 +27,6 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "EpollFD.hxx"
|
||||
#include "Error.hxx"
|
||||
|
||||
|
@@ -30,7 +30,6 @@
|
||||
#ifndef EPOLL_FD_HXX
|
||||
#define EPOLL_FD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "UniqueFileDescriptor.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
@@ -27,7 +27,6 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "EventFD.hxx"
|
||||
#include "system/Error.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
@@ -30,7 +30,6 @@
|
||||
#ifndef EVENT_FD_HXX
|
||||
#define EVENT_FD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "UniqueFileDescriptor.hxx"
|
||||
|
||||
/**
|
||||
|
@@ -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"
|
||||
|
@@ -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.
|
||||
*
|
||||
|
@@ -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"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_FATAL_ERROR_HXX
|
||||
#define MPD_FATAL_ERROR_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
@@ -27,7 +27,6 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "FileDescriptor.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
@@ -30,7 +30,6 @@
|
||||
#ifndef FILE_DESCRIPTOR_HXX
|
||||
#define FILE_DESCRIPTOR_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <utility>
|
||||
|
@@ -27,7 +27,6 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Open.hxx"
|
||||
#include "Error.hxx"
|
||||
#include "UniqueFileDescriptor.hxx"
|
||||
|
@@ -27,7 +27,6 @@
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "SignalFD.hxx"
|
||||
#include "Error.hxx"
|
||||
|
||||
|
@@ -30,7 +30,6 @@
|
||||
#ifndef SIGNAL_FD_HXX
|
||||
#define SIGNAL_FD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "UniqueFileDescriptor.hxx"
|
||||
|
||||
#include <signal.h>
|
||||
|
Reference in New Issue
Block a user