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:
@@ -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"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_BUFFERED_SOCKET_HXX
|
||||
#define MPD_BUFFERED_SOCKET_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "SocketMonitor.hxx"
|
||||
#include "util/StaticFifoBuffer.hxx"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_EVENT_CALL_HXX
|
||||
#define MPD_EVENT_CALL_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
class EventLoop;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "DeferEvent.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "IdleMonitor.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "MaskMonitor.hxx"
|
||||
|
||||
void
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "MultiSocketMonitor.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_EVENT_POLLGROUP_POLL_HXX
|
||||
#define MPD_EVENT_POLLGROUP_POLL_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "PollResultGeneric.hxx"
|
||||
|
||||
#include <vector>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_EVENT_POLLRESULT_GENERIC_HXX
|
||||
#define MPD_EVENT_POLLRESULT_GENERIC_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_SOCKET_SIGNAL_MONITOR_HXX
|
||||
#define MPD_SOCKET_SIGNAL_MONITOR_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
class EventLoop;
|
||||
|
||||
#ifndef _WIN32
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "SocketMonitor.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_SOCKET_MONITOR_HXX
|
||||
#define MPD_SOCKET_MONITOR_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "PollGroup.hxx"
|
||||
#include "net/SocketDescriptor.hxx"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_EVENT_THREAD_HXX
|
||||
#define MPD_EVENT_THREAD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Loop.hxx"
|
||||
#include "thread/Thread.hxx"
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TimerEvent.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user