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 "AsyncInputStream.hxx"
|
||||
#include "CondHandler.hxx"
|
||||
#include "tag/Tag.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "BufferedInputStream.hxx"
|
||||
#include "thread/Cond.hxx"
|
||||
#include "thread/Name.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_BUFFERED_INPUT_STREAM_BUFFER_HXX
|
||||
#define MPD_BUFFERED_INPUT_STREAM_BUFFER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "InputStream.hxx"
|
||||
#include "Ptr.hxx"
|
||||
#include "Handler.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_COND_INPUT_STREAM_HANDLER_HXX
|
||||
#define MPD_COND_INPUT_STREAM_HANDLER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Handler.hxx"
|
||||
#include "thread/Cond.hxx"
|
||||
|
||||
|
@@ -17,9 +17,9 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Error.hxx"
|
||||
#include "system/Error.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef ENABLE_CURL
|
||||
#include "lib/curl/Error.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef INPUT_ERROR_HXX
|
||||
#define INPUT_ERROR_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <exception>
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_INPUT_STREAM_HANDLER_HXX
|
||||
#define MPD_INPUT_STREAM_HANDLER_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
/**
|
||||
* An interface which gets receives events from an #InputStream. Its
|
||||
* methods will be called from within an arbitrary thread and must not
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "IcyInputStream.hxx"
|
||||
#include "IcyMetaDataParser.hxx"
|
||||
#include "tag/Tag.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Init.hxx"
|
||||
#include "Registry.hxx"
|
||||
#include "InputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "InputStream.hxx"
|
||||
#include "Handler.hxx"
|
||||
#include "tag/Tag.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_INPUT_STREAM_HXX
|
||||
#define MPD_INPUT_STREAM_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Offset.hxx"
|
||||
#include "Ptr.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
|
@@ -17,10 +17,10 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "LocalOpen.hxx"
|
||||
#include "InputStream.hxx"
|
||||
#include "plugins/FileInputPlugin.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef ENABLE_ARCHIVE
|
||||
#include "plugins/ArchiveInputPlugin.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_INPUT_LOCAL_OPEN_HXX
|
||||
#define MPD_INPUT_LOCAL_OPEN_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Ptr.hxx"
|
||||
|
||||
class Path;
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "MaybeBufferedInputStream.hxx"
|
||||
#include "BufferedInputStream.hxx"
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_MAYBE_BUFFERED_INPUT_STREAM_BUFFER_HXX
|
||||
#define MPD_MAYBE_BUFFERED_INPUT_STREAM_BUFFER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "ProxyInputStream.hxx"
|
||||
|
||||
/**
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_OFFSET_HXX
|
||||
#define MPD_OFFSET_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
/**
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "InputStream.hxx"
|
||||
#include "Registry.hxx"
|
||||
#include "InputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ProxyInputStream.hxx"
|
||||
#include "tag/Tag.hxx"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Reader.hxx"
|
||||
#include "InputStream.hxx"
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_INPUT_READER_HXX
|
||||
#define MPD_INPUT_READER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "fs/io/Reader.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
|
@@ -17,12 +17,12 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Registry.hxx"
|
||||
#include "InputPlugin.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
#include "plugins/TidalInputPlugin.hxx"
|
||||
#include "plugins/QobuzInputPlugin.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef ENABLE_ALSA
|
||||
#include "plugins/AlsaInputPlugin.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_INPUT_REGISTRY_HXX
|
||||
#define MPD_INPUT_REGISTRY_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
/**
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "RewindInputStream.hxx"
|
||||
#include "ProxyInputStream.hxx"
|
||||
|
||||
|
@@ -27,7 +27,6 @@
|
||||
#ifndef MPD_REWIND_INPUT_STREAM_HXX
|
||||
#define MPD_REWIND_INPUT_STREAM_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Ptr.hxx"
|
||||
|
||||
InputStreamPtr
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ScanTags.hxx"
|
||||
#include "RemoteTagScanner.hxx"
|
||||
#include "InputPlugin.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_INPUT_SCAN_TAGS_HXX
|
||||
#define MPD_INPUT_SCAN_TAGS_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class RemoteTagScanner;
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TextInputStream.hxx"
|
||||
#include "InputStream.hxx"
|
||||
#include "util/TextFile.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ThreadInputStream.hxx"
|
||||
#include "CondHandler.hxx"
|
||||
#include "thread/Name.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_THREAD_INPUT_STREAM_HXX
|
||||
#define MPD_THREAD_INPUT_STREAM_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "InputStream.hxx"
|
||||
#include "thread/Thread.hxx"
|
||||
#include "thread/Cond.hxx"
|
||||
|
@@ -24,7 +24,6 @@
|
||||
* http://alsamodular.sourceforge.net/alsa_programming_howto.html
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "AlsaInputPlugin.hxx"
|
||||
#include "lib/alsa/NonBlock.hxx"
|
||||
#include "../InputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ArchiveInputPlugin.hxx"
|
||||
#include "archive/ArchiveDomain.hxx"
|
||||
#include "archive/ArchiveLookup.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "CurlInputPlugin.hxx"
|
||||
#include "lib/curl/Error.hxx"
|
||||
#include "lib/curl/Easy.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
/* necessary because libavutil/common.h uses UINT64_C */
|
||||
#define __STDC_CONSTANT_MACROS
|
||||
|
||||
#include "config.h"
|
||||
#include "FfmpegInputPlugin.hxx"
|
||||
#include "lib/ffmpeg/Init.hxx"
|
||||
#include "lib/ffmpeg/Domain.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h" /* must be first for large file support */
|
||||
#include "FileInputPlugin.hxx"
|
||||
#include "../InputStream.hxx"
|
||||
#include "../InputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "MmsInputPlugin.hxx"
|
||||
#include "input/ThreadInputStream.hxx"
|
||||
#include "input/InputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "NfsInputPlugin.hxx"
|
||||
#include "../AsyncInputStream.hxx"
|
||||
#include "../InputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "QobuzClient.hxx"
|
||||
#include "lib/gcrypt/MD5.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef QOBUZ_CLIENT_HXX
|
||||
#define QOBUZ_CLIENT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "QobuzSession.hxx"
|
||||
#include "QobuzLoginRequest.hxx"
|
||||
#include "lib/curl/Init.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "QobuzErrorParser.hxx"
|
||||
#include "lib/yajl/Callbacks.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef QOBUZ_ERROR_PARSER_HXX
|
||||
#define QOBUZ_ERROR_PARSER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/yajl/ResponseParser.hxx"
|
||||
|
||||
#include <string>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "QobuzInputPlugin.hxx"
|
||||
#include "QobuzClient.hxx"
|
||||
#include "QobuzTrackRequest.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "QobuzLoginRequest.hxx"
|
||||
#include "QobuzErrorParser.hxx"
|
||||
#include "QobuzSession.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef QOBUZ_LOGIN_REQUEST_HXX
|
||||
#define QOBUZ_LOGIN_REQUEST_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/curl/Delegate.hxx"
|
||||
#include "lib/curl/Request.hxx"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "QobuzTagScanner.hxx"
|
||||
#include "QobuzErrorParser.hxx"
|
||||
#include "QobuzClient.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef QOBUZ_TAG_SCANNER
|
||||
#define QOBUZ_TAG_SCANNER
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/curl/Delegate.hxx"
|
||||
#include "lib/curl/Request.hxx"
|
||||
#include "input/RemoteTagScanner.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "QobuzTrackRequest.hxx"
|
||||
#include "QobuzErrorParser.hxx"
|
||||
#include "QobuzClient.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef QOBUZ_TRACK_REQUEST_HXX
|
||||
#define QOBUZ_TRACK_REQUEST_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/curl/Delegate.hxx"
|
||||
#include "lib/curl/Slist.hxx"
|
||||
#include "lib/curl/Request.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "SmbclientInputPlugin.hxx"
|
||||
#include "lib/smbclient/Init.hxx"
|
||||
#include "lib/smbclient/Mutex.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef TIDAL_ERROR_HXX
|
||||
#define TIDAL_ERROR_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
/**
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TidalErrorParser.hxx"
|
||||
#include "TidalError.hxx"
|
||||
#include "lib/yajl/Callbacks.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef TIDAL_ERROR_PARSER_HXX
|
||||
#define TIDAL_ERROR_PARSER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/yajl/ResponseParser.hxx"
|
||||
|
||||
#include <string>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TidalInputPlugin.hxx"
|
||||
#include "TidalSessionManager.hxx"
|
||||
#include "TidalTrackRequest.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TidalLoginRequest.hxx"
|
||||
#include "TidalErrorParser.hxx"
|
||||
#include "lib/curl/Form.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef TIDAL_LOGIN_REQUEST_HXX
|
||||
#define TIDAL_LOGIN_REQUEST_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/curl/Delegate.hxx"
|
||||
#include "lib/curl/Slist.hxx"
|
||||
#include "lib/curl/Request.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TidalSessionManager.hxx"
|
||||
#include "lib/curl/Global.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef TIDAL_SESSION_MANAGER_HXX
|
||||
#define TIDAL_SESSION_MANAGER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "TidalLoginRequest.hxx"
|
||||
#include "lib/curl/Init.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TidalTagScanner.hxx"
|
||||
#include "TidalErrorParser.hxx"
|
||||
#include "lib/yajl/Callbacks.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef TIDAL_TAG_SCANNER_HXX
|
||||
#define TIDAL_TAG_SCANNER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/curl/Delegate.hxx"
|
||||
#include "lib/curl/Slist.hxx"
|
||||
#include "lib/curl/Request.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TidalTrackRequest.hxx"
|
||||
#include "TidalErrorParser.hxx"
|
||||
#include "lib/yajl/Callbacks.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef TIDAL_TRACK_REQUEST_HXX
|
||||
#define TIDAL_TRACK_REQUEST_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "lib/curl/Delegate.hxx"
|
||||
#include "lib/curl/Slist.hxx"
|
||||
#include "lib/curl/Request.hxx"
|
||||
|
Reference in New Issue
Block a user