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" /* must be first for large file support */
#include "Aiff.hxx"
#include "input/InputStream.hxx"
#include "system/ByteOrder.hxx"

View File

@@ -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"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_APE_LOADER_HXX
#define MPD_APE_LOADER_HXX
#include "check.h"
#include <functional>
struct StringView;

View File

@@ -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"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_APE_REPLAY_GAIN_HXX
#define MPD_APE_REPLAY_GAIN_HXX
#include "check.h"
class InputStream;
struct ReplayGainInfo;

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_TAG_STRING_HXX
#define MPD_TAG_STRING_HXX
#include "check.h"
#include "util/Compiler.h"
struct StringView;

View File

@@ -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"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_TAG_FORMAT_HXX
#define MPD_TAG_FORMAT_HXX
#include "check.h"
#include "util/Compiler.h"
struct Tag;

View File

@@ -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>

View File

@@ -20,8 +20,6 @@
#ifndef MPD_TAG_GENERIC_HXX
#define MPD_TAG_GENERIC_HXX
#include "check.h"
class TagHandler;
class InputStream;
class Path;

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_TAG_ID3_LOAD_HXX
#define MPD_TAG_ID3_LOAD_HXX
#include "check.h"
#include "Id3Unique.hxx"
class InputStream;

View File

@@ -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"

View File

@@ -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;

View File

@@ -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"

View File

@@ -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;

View File

@@ -20,8 +20,6 @@
#ifndef MPD_TAG_ID3_UNIQUE_HXX
#define MPD_TAG_ID3_UNIQUE_HXX
#include "check.h"
#include <id3tag.h>
#include <memory>

View File

@@ -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"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_TAG_MIXRAMP_HXX
#define MPD_TAG_MIXRAMP_HXX
#include "check.h"
class MixRampInfo;
bool

View File

@@ -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] = {

View File

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

View File

@@ -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"

View File

@@ -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"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_TAG_REPLAY_GAIN_HXX
#define MPD_TAG_REPLAY_GAIN_HXX
#include "check.h"
struct ReplayGainInfo;
bool

View File

@@ -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"

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_TAG_RVA2_HXX
#define MPD_TAG_RVA2_HXX
#include "check.h"
struct id3_tag;
struct ReplayGainInfo;

View File

@@ -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"

View File

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

View File

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