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"
|
||||
#include "song/DetachedSong.hxx"
|
||||
#include "SongSave.hxx"
|
||||
#include "config/Data.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "DumpDecoderClient.hxx"
|
||||
#include "decoder/DecoderAPI.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef DUMP_DECODER_CLIENT_HXX
|
||||
#define DUMP_DECODER_CLIENT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "decoder/Client.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "song/Filter.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/PrintException.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "config/File.hxx"
|
||||
#include "config/Migrate.hxx"
|
||||
#include "config/Data.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ShutdownHandler.hxx"
|
||||
|
||||
#ifndef _WIN32
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "AudioParser.hxx"
|
||||
#include "util/StringBuffer.hxx"
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for class CircularBuffer.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "util/CircularBuffer.hxx"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for src/util/
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "util/DivideString.hxx"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for src/util/
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "util/MimeType.hxx"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for class RewindInputStream.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "input/RewindInputStream.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for src/util/
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "util/SplitString.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for src/util/
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "util/UriUtil.hxx"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "fs/io/FileOutputStream.hxx"
|
||||
#include "util/PrintException.hxx"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "TagSave.hxx"
|
||||
#include "song/DetachedSong.hxx"
|
||||
#include "playlist/SongEnumerator.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "config/Data.hxx"
|
||||
#include "config/Param.hxx"
|
||||
#include "config/File.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "NullMixerListener.hxx"
|
||||
#include "mixer/MixerControl.hxx"
|
||||
#include "mixer/MixerList.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "event/Loop.hxx"
|
||||
#include "ShutdownHandler.hxx"
|
||||
#include "zeroconf/ZeroconfAvahi.hxx"
|
||||
|
@@ -23,7 +23,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "AudioParser.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "pcm/PcmConvert.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "config/File.hxx"
|
||||
#include "config/Migrate.hxx"
|
||||
#include "config/Data.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "encoder/EncoderList.hxx"
|
||||
#include "encoder/EncoderPlugin.hxx"
|
||||
#include "encoder/EncoderInterface.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "config/Param.hxx"
|
||||
#include "config/Data.hxx"
|
||||
#include "config/File.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "fs/io/GunzipReader.hxx"
|
||||
#include "fs/io/FileReader.hxx"
|
||||
#include "fs/io/StdioOutputStream.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "fs/io/GzipOutputStream.hxx"
|
||||
#include "fs/io/StdioOutputStream.hxx"
|
||||
#include "system/Error.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "ShutdownHandler.hxx"
|
||||
#include "db/update/InotifySource.hxx"
|
||||
#include "event/Loop.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "config/File.hxx"
|
||||
#include "config/Migrate.hxx"
|
||||
#include "config/Data.hxx"
|
||||
|
@@ -23,7 +23,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "AudioCompress/compress.h"
|
||||
#include "AudioParser.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "output/Interface.hxx"
|
||||
#include "output/Registry.hxx"
|
||||
#include "output/OutputPlugin.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "net/Resolver.hxx"
|
||||
#include "net/AddressInfo.hxx"
|
||||
#include "net/ToString.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "event/Thread.hxx"
|
||||
#include "storage/Registry.hxx"
|
||||
#include "storage/StorageInterface.hxx"
|
||||
|
@@ -23,7 +23,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "pcm/Volume.hxx"
|
||||
#include "AudioParser.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#include "config.h"
|
||||
#include "archive/ArchiveLookup.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for class IcyMetaDataParser.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "util/ScopeExit.hxx"
|
||||
|
||||
/* include the .cxx file to get access to internal functions */
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for mixramp_interpolate()
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "player/CrossFade.cxx"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "test_pcm_util.hxx"
|
||||
#include "pcm/PcmChannels.hxx"
|
||||
#include "pcm/PcmBuffer.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "test_pcm_util.hxx"
|
||||
#include "pcm/PcmDither.cxx"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "test_pcm_util.hxx"
|
||||
#include "pcm/PcmFormat.hxx"
|
||||
#include "pcm/PcmDither.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "pcm/Interleave.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "test_pcm_util.hxx"
|
||||
#include "pcm/PcmMix.hxx"
|
||||
#include "pcm/PcmDither.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "test_pcm_util.hxx"
|
||||
#include "pcm/PcmPack.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "pcm/Volume.hxx"
|
||||
#include "pcm/Traits.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#include "config.h"
|
||||
#include "protocol/ArgParser.hxx"
|
||||
#include "protocol/Ack.hxx"
|
||||
#include "protocol/RangeArg.hxx"
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#include "config.h"
|
||||
#include "queue/Queue.hxx"
|
||||
#include "song/DetachedSong.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
|
@@ -2,7 +2,6 @@
|
||||
* Unit tests for playlist_check_translate_song().
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "playlist/PlaylistSong.hxx"
|
||||
#include "song/DetachedSong.hxx"
|
||||
#include "SongLoader.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "encoder/EncoderList.hxx"
|
||||
#include "encoder/EncoderPlugin.hxx"
|
||||
#include "encoder/EncoderInterface.hxx"
|
||||
|
Reference in New Issue
Block a user