diff options
author | Max Kellermann <max@musicpd.org> | 2018-11-19 12:49:45 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-11-19 16:33:49 +0100 |
commit | ce49d99c2f3265f2975b2cff583684bf191bbd93 (patch) | |
tree | 98fa09c94aa5d170fd3f553ac107ea2f0aa82bf4 /src/tag | |
parent | 2e450bbf959e7b72894c5037a2d46523556c8b72 (diff) |
check.h: remove obsolete header
Since we switched from autotools to Meson in commit
94592c14062d5afc9482d11baa401648082022c0, 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.
Diffstat (limited to 'src/tag')
36 files changed, 1 insertions, 47 deletions
diff --git a/src/tag/Aiff.cxx b/src/tag/Aiff.cxx index 2c090af4c..57ec343d5 100644 --- a/src/tag/Aiff.cxx +++ b/src/tag/Aiff.cxx @@ -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" diff --git a/src/tag/ApeLoader.cxx b/src/tag/ApeLoader.cxx index 7eb303ccf..88556cd4b 100644 --- a/src/tag/ApeLoader.cxx +++ b/src/tag/ApeLoader.cxx @@ -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" diff --git a/src/tag/ApeLoader.hxx b/src/tag/ApeLoader.hxx index 8d83b1113..ec8e0a182 100644 --- a/src/tag/ApeLoader.hxx +++ b/src/tag/ApeLoader.hxx @@ -20,8 +20,6 @@ #ifndef MPD_APE_LOADER_HXX #define MPD_APE_LOADER_HXX -#include "check.h" - #include <functional> struct StringView; diff --git a/src/tag/ApeReplayGain.cxx b/src/tag/ApeReplayGain.cxx index 7f77ecd33..e5ec04721 100644 --- a/src/tag/ApeReplayGain.cxx +++ b/src/tag/ApeReplayGain.cxx @@ -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" diff --git a/src/tag/ApeReplayGain.hxx b/src/tag/ApeReplayGain.hxx index 9b1c2f1f0..8d12d0a0d 100644 --- a/src/tag/ApeReplayGain.hxx +++ b/src/tag/ApeReplayGain.hxx @@ -20,8 +20,6 @@ #ifndef MPD_APE_REPLAY_GAIN_HXX #define MPD_APE_REPLAY_GAIN_HXX -#include "check.h" - class InputStream; struct ReplayGainInfo; diff --git a/src/tag/ApeTag.cxx b/src/tag/ApeTag.cxx index 68ee9100c..b05162f23 100644 --- a/src/tag/ApeTag.cxx +++ b/src/tag/ApeTag.cxx @@ -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" diff --git a/src/tag/Builder.cxx b/src/tag/Builder.cxx index 38c7f501c..3a1d877c9 100644 --- a/src/tag/Builder.cxx +++ b/src/tag/Builder.cxx @@ -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" diff --git a/src/tag/Config.cxx b/src/tag/Config.cxx index 247b80df4..571676d2d 100644 --- a/src/tag/Config.cxx +++ b/src/tag/Config.cxx @@ -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" diff --git a/src/tag/FixString.cxx b/src/tag/FixString.cxx index 64b6aa1a1..598df98b8 100644 --- a/src/tag/FixString.cxx +++ b/src/tag/FixString.cxx @@ -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" diff --git a/src/tag/FixString.hxx b/src/tag/FixString.hxx index 8fc57ae38..d688786e5 100644 --- a/src/tag/FixString.hxx +++ b/src/tag/FixString.hxx @@ -20,7 +20,6 @@ #ifndef MPD_TAG_STRING_HXX #define MPD_TAG_STRING_HXX -#include "check.h" #include "util/Compiler.h" struct StringView; diff --git a/src/tag/Format.cxx b/src/tag/Format.cxx index c14682ca0..a86e4643e 100644 --- a/src/tag/Format.cxx +++ b/src/tag/Format.cxx @@ -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" diff --git a/src/tag/Format.hxx b/src/tag/Format.hxx index 2a4fc3829..0028881c6 100644 --- a/src/tag/Format.hxx +++ b/src/tag/Format.hxx @@ -20,7 +20,6 @@ #ifndef MPD_TAG_FORMAT_HXX #define MPD_TAG_FORMAT_HXX -#include "check.h" #include "util/Compiler.h" struct Tag; diff --git a/src/tag/Generic.cxx b/src/tag/Generic.cxx index 80fc7398d..5cca3e489 100644 --- a/src/tag/Generic.cxx +++ b/src/tag/Generic.cxx @@ -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> diff --git a/src/tag/Generic.hxx b/src/tag/Generic.hxx index 19fb7ca5b..3f7deb1c3 100644 --- a/src/tag/Generic.hxx +++ b/src/tag/Generic.hxx @@ -20,8 +20,6 @@ #ifndef MPD_TAG_GENERIC_HXX #define MPD_TAG_GENERIC_HXX -#include "check.h" - class TagHandler; class InputStream; class Path; diff --git a/src/tag/Handler.cxx b/src/tag/Handler.cxx index 8747c908f..fb328fda6 100644 --- a/src/tag/Handler.cxx +++ b/src/tag/Handler.cxx @@ -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" diff --git a/src/tag/Handler.hxx b/src/tag/Handler.hxx index 24f68e380..f03ac4af8 100644 --- a/src/tag/Handler.hxx +++ b/src/tag/Handler.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" diff --git a/src/tag/Id3Load.cxx b/src/tag/Id3Load.cxx index 31eeeadda..fe9db5c48 100644 --- a/src/tag/Id3Load.cxx +++ b/src/tag/Id3Load.cxx @@ -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" diff --git a/src/tag/Id3Load.hxx b/src/tag/Id3Load.hxx index 23b7ac605..2f2014722 100644 --- a/src/tag/Id3Load.hxx +++ b/src/tag/Id3Load.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; diff --git a/src/tag/Id3ReplayGain.cxx b/src/tag/Id3ReplayGain.cxx index 94a5a0bc4..cab15f708 100644 --- a/src/tag/Id3ReplayGain.cxx +++ b/src/tag/Id3ReplayGain.cxx @@ -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" diff --git a/src/tag/Id3ReplayGain.hxx b/src/tag/Id3ReplayGain.hxx index 642b7ce7b..9a4790060 100644 --- a/src/tag/Id3ReplayGain.hxx +++ b/src/tag/Id3ReplayGain.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; diff --git a/src/tag/Id3Scan.cxx b/src/tag/Id3Scan.cxx index c35b4ac7e..b32b1a37b 100644 --- a/src/tag/Id3Scan.cxx +++ b/src/tag/Id3Scan.cxx @@ -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" diff --git a/src/tag/Id3Scan.hxx b/src/tag/Id3Scan.hxx index 91a3d9129..34ca73c68 100644 --- a/src/tag/Id3Scan.hxx +++ b/src/tag/Id3Scan.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; diff --git a/src/tag/Id3Unique.hxx b/src/tag/Id3Unique.hxx index d09996103..b2117e0d8 100644 --- a/src/tag/Id3Unique.hxx +++ b/src/tag/Id3Unique.hxx @@ -20,8 +20,6 @@ #ifndef MPD_TAG_ID3_UNIQUE_HXX #define MPD_TAG_ID3_UNIQUE_HXX -#include "check.h" - #include <id3tag.h> #include <memory> diff --git a/src/tag/MixRamp.cxx b/src/tag/MixRamp.cxx index 20e51e7f8..43b146466 100644 --- a/src/tag/MixRamp.cxx +++ b/src/tag/MixRamp.cxx @@ -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" diff --git a/src/tag/MixRamp.hxx b/src/tag/MixRamp.hxx index 56aa66e87..778ee5975 100644 --- a/src/tag/MixRamp.hxx +++ b/src/tag/MixRamp.hxx @@ -20,8 +20,6 @@ #ifndef MPD_TAG_MIXRAMP_HXX #define MPD_TAG_MIXRAMP_HXX -#include "check.h" - class MixRampInfo; bool diff --git a/src/tag/Names.c b/src/tag/Names.c index 5a4de3b4a..f330f7f70 100644 --- a/src/tag/Names.c +++ b/src/tag/Names.c @@ -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] = { diff --git a/src/tag/ParseName.cxx b/src/tag/ParseName.cxx index 8f9b5deab..0ad34fddd 100644 --- a/src/tag/ParseName.cxx +++ b/src/tag/ParseName.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "ParseName.hxx" #include "util/ASCII.hxx" diff --git a/src/tag/Pool.cxx b/src/tag/Pool.cxx index 330b65d22..95172b46a 100644 --- a/src/tag/Pool.cxx +++ b/src/tag/Pool.cxx @@ -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" diff --git a/src/tag/ReplayGain.cxx b/src/tag/ReplayGain.cxx index 1fad1322f..a316ff01e 100644 --- a/src/tag/ReplayGain.cxx +++ b/src/tag/ReplayGain.cxx @@ -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" diff --git a/src/tag/ReplayGain.hxx b/src/tag/ReplayGain.hxx index 8a1c37d3b..0f40c7b09 100644 --- a/src/tag/ReplayGain.hxx +++ b/src/tag/ReplayGain.hxx @@ -20,8 +20,6 @@ #ifndef MPD_TAG_REPLAY_GAIN_HXX #define MPD_TAG_REPLAY_GAIN_HXX -#include "check.h" - struct ReplayGainInfo; bool diff --git a/src/tag/Riff.cxx b/src/tag/Riff.cxx index 21772e04c..85cbcf743 100644 --- a/src/tag/Riff.cxx +++ b/src/tag/Riff.cxx @@ -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" diff --git a/src/tag/Rva2.cxx b/src/tag/Rva2.cxx index c89d0eadb..c7382574e 100644 --- a/src/tag/Rva2.cxx +++ b/src/tag/Rva2.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "Rva2.hxx" #include "ReplayGainInfo.hxx" diff --git a/src/tag/Rva2.hxx b/src/tag/Rva2.hxx index 8cdd2d46c..baf4e8be8 100644 --- a/src/tag/Rva2.hxx +++ b/src/tag/Rva2.hxx @@ -20,8 +20,6 @@ #ifndef MPD_TAG_RVA2_HXX #define MPD_TAG_RVA2_HXX -#include "check.h" - struct id3_tag; struct ReplayGainInfo; diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx index 0c7981e32..59ebea325 100644 --- a/src/tag/Tag.cxx +++ b/src/tag/Tag.cxx @@ -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" diff --git a/src/tag/VorbisComment.cxx b/src/tag/VorbisComment.cxx index 09466cad6..f38ff3391 100644 --- a/src/tag/VorbisComment.cxx +++ b/src/tag/VorbisComment.cxx @@ -17,7 +17,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "config.h" #include "VorbisComment.hxx" #include "util/ASCII.hxx" diff --git a/src/tag/VorbisComment.hxx b/src/tag/VorbisComment.hxx index fdae9ccf6..54e33f459 100644 --- a/src/tag/VorbisComment.hxx +++ b/src/tag/VorbisComment.hxx @@ -20,7 +20,6 @@ #ifndef MPD_TAG_VORBIS_COMMENT_HXX #define MPD_TAG_VORBIS_COMMENT_HXX -#include "check.h" #include "util/Compiler.h" /** |