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" /* must be first for large file support */
|
||||
#include "Aiff.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ApeLoader.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_APE_LOADER_HXX
|
||||
#define MPD_APE_LOADER_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
struct StringView;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ApeReplayGain.hxx"
|
||||
#include "ApeLoader.hxx"
|
||||
#include "ReplayGain.hxx"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_APE_REPLAY_GAIN_HXX
|
||||
#define MPD_APE_REPLAY_GAIN_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
class InputStream;
|
||||
struct ReplayGainInfo;
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ApeTag.hxx"
|
||||
#include "ApeLoader.hxx"
|
||||
#include "ParseName.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Builder.hxx"
|
||||
#include "Settings.hxx"
|
||||
#include "Pool.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Config.hxx"
|
||||
#include "Settings.hxx"
|
||||
#include "ParseName.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "FixString.hxx"
|
||||
#include "util/Alloc.hxx"
|
||||
#include "util/WritableBuffer.hxx"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_TAG_STRING_HXX
|
||||
#define MPD_TAG_STRING_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
struct StringView;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Format.hxx"
|
||||
#include "Tag.hxx"
|
||||
#include "ParseName.hxx"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_TAG_FORMAT_HXX
|
||||
#define MPD_TAG_FORMAT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
struct Tag;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Generic.hxx"
|
||||
#include "Id3Scan.hxx"
|
||||
#include "ApeTag.hxx"
|
||||
@@ -26,6 +25,7 @@
|
||||
#include "input/InputStream.hxx"
|
||||
#include "input/LocalOpen.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <exception>
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_TAG_GENERIC_HXX
|
||||
#define MPD_TAG_GENERIC_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
class TagHandler;
|
||||
class InputStream;
|
||||
class Path;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Handler.hxx"
|
||||
#include "Builder.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_TAG_HANDLER_HXX
|
||||
#define MPD_TAG_HANDLER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Type.h"
|
||||
#include "Chrono.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Id3Load.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "Riff.hxx"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_TAG_ID3_LOAD_HXX
|
||||
#define MPD_TAG_ID3_LOAD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "Id3Unique.hxx"
|
||||
|
||||
class InputStream;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Id3ReplayGain.hxx"
|
||||
#include "Rva2.hxx"
|
||||
#include "ReplayGain.hxx"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_TAG_ID3_REPLAY_GAIN_HXX
|
||||
#define MPD_TAG_ID3_REPLAY_GAIN_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct id3_tag;
|
||||
struct ReplayGainInfo;
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Id3Scan.hxx"
|
||||
#include "Id3Load.hxx"
|
||||
#include "Handler.hxx"
|
||||
|
||||
@@ -20,10 +20,6 @@
|
||||
#ifndef MPD_TAG_ID3_SCAN_HXX
|
||||
#define MPD_TAG_ID3_SCAN_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class InputStream;
|
||||
class TagHandler;
|
||||
struct Tag;
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_TAG_ID3_UNIQUE_HXX
|
||||
#define MPD_TAG_ID3_UNIQUE_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <id3tag.h>
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "MixRamp.hxx"
|
||||
#include "VorbisComment.hxx"
|
||||
#include "MixRampInfo.hxx"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_TAG_MIXRAMP_HXX
|
||||
#define MPD_TAG_MIXRAMP_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
class MixRampInfo;
|
||||
|
||||
bool
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Type.h"
|
||||
|
||||
const char *const tag_item_names[TAG_NUM_OF_ITEM_TYPES] = {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ParseName.hxx"
|
||||
#include "util/ASCII.hxx"
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Pool.hxx"
|
||||
#include "Item.hxx"
|
||||
#include "util/Cast.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ReplayGain.hxx"
|
||||
#include "VorbisComment.hxx"
|
||||
#include "ReplayGainInfo.hxx"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_TAG_REPLAY_GAIN_HXX
|
||||
#define MPD_TAG_REPLAY_GAIN_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct ReplayGainInfo;
|
||||
|
||||
bool
|
||||
|
||||
@@ -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 "Riff.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Rva2.hxx"
|
||||
#include "ReplayGainInfo.hxx"
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_TAG_RVA2_HXX
|
||||
#define MPD_TAG_RVA2_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct id3_tag;
|
||||
struct ReplayGainInfo;
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Tag.hxx"
|
||||
#include "Pool.hxx"
|
||||
#include "Builder.hxx"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "VorbisComment.hxx"
|
||||
#include "util/ASCII.hxx"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_TAG_VORBIS_COMMENT_HXX
|
||||
#define MPD_TAG_VORBIS_COMMENT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user