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

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "BufferedSocket.hxx"
#include "net/SocketError.hxx"
#include "util/Compiler.h"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_BUFFERED_SOCKET_HXX
#define MPD_BUFFERED_SOCKET_HXX
#include "check.h"
#include "SocketMonitor.hxx"
#include "util/StaticFifoBuffer.hxx"

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Call.hxx"
#include "Loop.hxx"
#include "DeferEvent.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_EVENT_CALL_HXX
#define MPD_EVENT_CALL_HXX
#include "check.h"
#include <functional>
class EventLoop;

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_DEFER_EVENT_HXX
#define MPD_DEFER_EVENT_HXX
#include "check.h"
#include "util/BindMethod.hxx"
#include <boost/intrusive/list_hook.hpp>

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "FullyBufferedSocket.hxx"
#include "net/SocketError.hxx"
#include "util/Compiler.h"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_FULLY_BUFFERED_SOCKET_HXX
#define MPD_FULLY_BUFFERED_SOCKET_HXX
#include "check.h"
#include "BufferedSocket.hxx"
#include "IdleMonitor.hxx"
#include "util/PeakBuffer.hxx"

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_SOCKET_IDLE_MONITOR_HXX
#define MPD_SOCKET_IDLE_MONITOR_HXX
#include "check.h"
#include <boost/intrusive/list_hook.hpp>
class EventLoop;
@@ -73,4 +71,4 @@ private:
void Run() noexcept;
};
#endif /* MAIN_NOTIFY_H */
#endif

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Loop.hxx"
#include "SocketMonitor.hxx"
#include "IdleMonitor.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_EVENT_LOOP_HXX
#define MPD_EVENT_LOOP_HXX
#include "check.h"
#include "thread/Id.hxx"
#include "util/Compiler.h"

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_EVENT_MASK_MONITOR_HXX
#define MPD_EVENT_MASK_MONITOR_HXX
#include "check.h"
#include "DeferEvent.hxx"
#include "util/BindMethod.hxx"

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_MULTI_SOCKET_MONITOR_HXX
#define MPD_MULTI_SOCKET_MONITOR_HXX
#include "check.h"
#include "IdleMonitor.hxx"
#include "TimerEvent.hxx"
#include "SocketMonitor.hxx"

View File

@@ -20,6 +20,8 @@
#ifndef MPD_EVENT_POLLGROUP_HXX
#define MPD_EVENT_POLLGROUP_HXX
#include "config.h"
#ifdef USE_EPOLL
#include "PollGroupEpoll.hxx"
typedef PollResultEpoll PollResult;

View File

@@ -20,8 +20,6 @@
#ifndef MPD_EVENT_POLLGROUP_EPOLL_HXX
#define MPD_EVENT_POLLGROUP_EPOLL_HXX
#include "check.h"
#include "util/Compiler.h"
#include "system/EpollFD.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_EVENT_POLLGROUP_POLL_HXX
#define MPD_EVENT_POLLGROUP_POLL_HXX
#include "check.h"
#include "PollResultGeneric.hxx"
#include <vector>

View File

@@ -20,8 +20,6 @@
#ifndef MPD_EVENT_POLLGROUP_WINSELECT_HXX
#define MPD_EVENT_POLLGROUP_WINSELECT_HXX
#include "check.h"
#include "PollResultGeneric.hxx"
#include <assert.h>

View File

@@ -20,8 +20,6 @@
#ifndef MPD_EVENT_POLLRESULT_GENERIC_HXX
#define MPD_EVENT_POLLRESULT_GENERIC_HXX
#include "check.h"
#include <vector>
#include <stddef.h>

View File

@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "SignalMonitor.hxx"
#include "config.h"
#ifndef _WIN32

View File

@@ -20,8 +20,6 @@
#ifndef MPD_SOCKET_SIGNAL_MONITOR_HXX
#define MPD_SOCKET_SIGNAL_MONITOR_HXX
#include "check.h"
class EventLoop;
#ifndef _WIN32

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_SOCKET_MONITOR_HXX
#define MPD_SOCKET_MONITOR_HXX
#include "check.h"
#include "PollGroup.hxx"
#include "net/SocketDescriptor.hxx"

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Thread.hxx"
#include "thread/Name.hxx"
#include "thread/Slack.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_EVENT_THREAD_HXX
#define MPD_EVENT_THREAD_HXX
#include "check.h"
#include "Loop.hxx"
#include "thread/Thread.hxx"

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_TIMER_EVENT_HXX
#define MPD_TIMER_EVENT_HXX
#include "check.h"
#include "util/BindMethod.hxx"
#include <boost/intrusive/set_hook.hpp>

View File

@@ -20,9 +20,7 @@
#ifndef MPD_WAKE_FD_HXX
#define MPD_WAKE_FD_HXX
#include "check.h"
#include <assert.h>
#include "config.h"
#ifdef USE_EVENTFD
#include "system/EventFD.hxx"
@@ -32,4 +30,4 @@
#define WakeFD EventPipe
#endif
#endif /* MAIN_NOTIFY_H */
#endif