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 "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[];