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,11 +17,11 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "AllowedFormat.hxx"
#include "AudioParser.hxx"
#include "util/IterableSplitString.hxx"
#include "util/StringBuffer.hxx"
#include "config.h"
#include <stdexcept>

View File

@@ -20,8 +20,8 @@
#ifndef MPD_ALSA_ALLOWED_FORMAT_HXX
#define MPD_ALSA_ALLOWED_FORMAT_HXX
#include "check.h"
#include "AudioFormat.hxx"
#include "config.h"
#include <forward_list>
#include <string>

View File

@@ -20,9 +20,9 @@
#ifndef MPD_ALSA_FORMAT_HXX
#define MPD_ALSA_FORMAT_HXX
#include "check.h"
#include "pcm/SampleFormat.hxx"
#include "util/Compiler.h"
#include "config.h"
#include <alsa/asoundlib.h>

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "HwSetup.hxx"
#include "Format.hxx"
#include "system/ByteOrder.hxx"
@@ -25,6 +24,7 @@
#include "util/RuntimeError.hxx"
#include "AudioFormat.hxx"
#include "Log.hxx"
#include "config.h"
static constexpr Domain alsa_output_domain("alsa_output");

View File

@@ -20,7 +20,6 @@
#ifndef MPD_ALSA_HW_SETUP_HXX
#define MPD_ALSA_HW_SETUP_HXX
#include "check.h"
#include "pcm/PcmExport.hxx"
#include <alsa/asoundlib.h>

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_ALSA_NON_BLOCK_HXX
#define MPD_ALSA_NON_BLOCK_HXX
#include "check.h"
#include "util/ReusableArray.hxx"
#include <alsa/asoundlib.h>

View File

@@ -20,8 +20,6 @@
#ifndef MPD_ALSA_PERIOD_BUFFER_HXX
#define MPD_ALSA_PERIOD_BUFFER_HXX
#include "check.h"
#include <alsa/asoundlib.h>
#include <algorithm>

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Form.hxx"
std::string

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Global.hxx"
#include "Request.hxx"
#include "Log.hxx"
@@ -35,6 +34,7 @@
#include "event/SocketMonitor.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include "config.h"
static constexpr Domain curlm_domain("curlm");

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Init.hxx"
#include "Global.hxx"
#include "event/Call.hxx"

View File

@@ -30,8 +30,6 @@
#ifndef CURL_INIT_HXX
#define CURL_INIT_HXX
#include "check.h"
class Mutex;
class EventLoop;
class CurlGlobal;

View File

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

View File

@@ -30,7 +30,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Watch.hxx"
namespace ODBus {

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_EXPAT_HXX
#define MPD_EXPAT_HXX
#include "check.h"
#include "util/Compiler.h"
#include <expat.h>

View File

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

View File

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

View File

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

View File

@@ -20,7 +20,6 @@
/* necessary because libavutil/common.h uses UINT64_C */
#define __STDC_CONSTANT_MACROS
#include "config.h"
#include "Init.hxx"
#include "LogCallback.hxx"

View File

@@ -20,7 +20,6 @@
/* necessary because libavutil/common.h uses UINT64_C */
#define __STDC_CONSTANT_MACROS
#include "config.h"
#include "LogCallback.hxx"
#include "Domain.hxx"
#include "LogV.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_FFMPEG_LOG_CALLBACK_HXX
#define MPD_FFMPEG_LOG_CALLBACK_HXX
#include "check.h"
#include <stdarg.h>
void

View File

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

View File

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

View File

@@ -20,7 +20,7 @@
#ifndef MPD_ICU_CASE_FOLD_HXX
#define MPD_ICU_CASE_FOLD_HXX
#include "check.h"
#include "config.h"
#if defined(HAVE_ICU) || defined(_WIN32)
#define HAVE_ICU_CASE_FOLD

View File

@@ -17,9 +17,9 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Collate.hxx"
#include "util/AllocatedString.hxx"
#include "config.h"
#ifdef HAVE_ICU
#include "Util.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_ICU_COLLATE_HXX
#define MPD_ICU_COLLATE_HXX
#include "check.h"
#include "util/Compiler.h"
/**

View File

@@ -17,10 +17,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Compare.hxx"
#include "CaseFold.hxx"
#include "util/StringAPI.hxx"
#include "config.h"
#include <string.h>

View File

@@ -20,7 +20,6 @@
#ifndef MPD_ICU_COMPARE_HXX
#define MPD_ICU_COMPARE_HXX
#include "check.h"
#include "util/Compiler.h"
#include "util/AllocatedString.hxx"

View File

@@ -17,13 +17,13 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Converter.hxx"
#include "util/Macros.hxx"
#include "util/AllocatedString.hxx"
#include "util/AllocatedArray.hxx"
#include "util/ConstBuffer.hxx"
#include "util/FormatString.hxx"
#include "config.h"
#include <stdexcept>

View File

@@ -20,8 +20,8 @@
#ifndef MPD_ICU_CONVERTER_HXX
#define MPD_ICU_CONVERTER_HXX
#include "check.h"
#include "util/Compiler.h"
#include "config.h"
#ifdef HAVE_ICU
#include "thread/Mutex.hxx"

View File

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

View File

@@ -20,7 +20,7 @@
#ifndef MPD_ICU_INIT_HXX
#define MPD_ICU_INIT_HXX
#include "check.h"
#include "config.h"
#ifdef HAVE_ICU

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_ICU_UTIL_HXX
#define MPD_ICU_UTIL_HXX
#include "check.h"
#include <unicode/utypes.h>
template<typename T> struct ConstBuffer;

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_ICU_WIN32_HXX
#define MPD_ICU_WIN32_HXX
#include "check.h"
#include "util/Compiler.h"
#include <wchar.h>

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_NFS_BASE_HXX
#define MPD_NFS_BASE_HXX
#include "check.h"
#include "util/Compiler.h"
/**

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_BLOCKING_NFS_CALLBACK_HXX
#define MPD_BLOCKING_NFS_CALLBACK_HXX
#include "check.h"
#include "Callback.hxx"
#include "Lease.hxx"
#include "thread/Mutex.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_NFS_CALLBACK_HXX
#define MPD_NFS_CALLBACK_HXX
#include "check.h"
#include <exception>
/**

View File

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

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_NFS_FILE_READER_HXX
#define MPD_NFS_FILE_READER_HXX
#include "check.h"
#include "Lease.hxx"
#include "Callback.hxx"
#include "event/DeferEvent.hxx"

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_NFS_GLUE_HXX
#define MPD_NFS_GLUE_HXX
#include "check.h"
#include "util/Compiler.h"
class EventLoop;

View File

@@ -20,8 +20,6 @@
#ifndef MPD_NFS_LEASE_HXX
#define MPD_NFS_LEASE_HXX
#include "check.h"
#include <exception>
class NfsLease {

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_NFS_MANAGER_HXX
#define MPD_NFS_MANAGER_HXX
#include "check.h"
#include "Connection.hxx"
#include "util/Compiler.h"
#include "event/IdleMonitor.hxx"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Watchdog.hxx"
#include <systemd/sd-daemon.h>

View File

@@ -30,7 +30,6 @@
#ifndef SYSTEMD_WATCHDOG_HXX
#define SYSTEMD_WATCHDOG_HXX
#include "check.h"
#include "event/TimerEvent.hxx"
namespace Systemd {

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_UPNP_CLIENT_INIT_HXX
#define MPD_UPNP_CLIENT_INIT_HXX
#include "check.h"
#include <upnp.h>
UpnpClient_Handle

View File

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

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Device.hxx"
#include "Util.hxx"
#include "lib/expat/ExpatParser.hxx"

View File

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

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "Init.hxx"
#include "thread/Mutex.hxx"
#include "util/RuntimeError.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_UPNP_INIT_HXX
#define MPD_UPNP_INIT_HXX
#include "check.h"
void
UpnpGlobalInit();

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "FlacIOHandle.hxx"
#include "Log.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 "FlacMetadataChain.hxx"
#include "FlacMetadataIterator.hxx"
#include "FlacIOHandle.hxx"

View File

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

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "OggFind.hxx"
#include "lib/xiph/OggSyncState.hxx"
#include "input/InputStream.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_OGG_FIND_HXX
#define MPD_OGG_FIND_HXX
#include "check.h"
#include "input/Offset.hxx"
#include <ogg/ogg.h>

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_OGG_PACKET_HXX
#define MPD_OGG_PACKET_HXX
#include "check.h"
#include <ogg/ogg.h>
class OggSyncState;

View File

@@ -20,8 +20,6 @@
#ifndef MPD_OGG_PAGE_HXX
#define MPD_OGG_PAGE_HXX
#include "check.h"
#include <ogg/ogg.h>
#include <assert.h>

View File

@@ -20,8 +20,6 @@
#ifndef MPD_OGG_STREAM_STATE_HXX
#define MPD_OGG_STREAM_STATE_HXX
#include "check.h"
#include <ogg/ogg.h>
#include <assert.h>

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_OGG_SYNC_STATE_HXX
#define MPD_OGG_SYNC_STATE_HXX
#include "check.h"
#include <ogg/ogg.h>
#include <stddef.h>

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_OGG_VISITOR_HXX
#define MPD_OGG_VISITOR_HXX
#include "check.h"
#include "OggSyncState.hxx"
#include "OggStreamState.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_VORBIS_COMMENT_HXX
#define MPD_VORBIS_COMMENT_HXX
#include "check.h"
#include <vorbis/codec.h>
/**

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_VORBIS_COMMENTS_HXX
#define MPD_VORBIS_COMMENTS_HXX
#include "check.h"
#include <memory>
struct ReplayGainInfo;

View File

@@ -21,7 +21,7 @@
* Flac and Opus which will be used in addition to the Tags in tag/TagNames.c
* see https://www.xiph.org/vorbis/doc/v-comment.html for further Info
*/
#include "config.h"
#include "XiphTags.hxx"
const struct tag_table xiph_tags[] = {

View File

@@ -20,7 +20,6 @@
#ifndef MPD_XIPH_TAGS_HXX
#define MPD_XIPH_TAGS_HXX
#include "check.h"
#include "tag/Table.hxx"
extern const struct tag_table xiph_tags[];

View File

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

View File

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