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 "ChannelsConverter.hxx"
#include "PcmChannels.hxx"
#include "util/ConstBuffer.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_PCM_CHANNELS_CONVERTER_HXX
#define MPD_PCM_CHANNELS_CONVERTER_HXX
#include "check.h"
#include "SampleFormat.hxx"
#include "PcmBuffer.hxx"

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "ConfiguredResampler.hxx"
#include "FallbackResampler.hxx"
#include "config/Data.hxx"
@@ -26,6 +25,7 @@
#include "config/Block.hxx"
#include "config/Param.hxx"
#include "util/RuntimeError.hxx"
#include "config.h"
#ifdef ENABLE_LIBSAMPLERATE
#include "LibsamplerateResampler.hxx"

View File

@@ -20,8 +20,6 @@
#ifndef MPD_CONFIGURED_RESAMPLER_HXX
#define MPD_CONFIGURED_RESAMPLER_HXX
#include "check.h"
struct ConfigData;
class PcmResampler;

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_PCM_DSD_16_HXX
#define MPD_PCM_DSD_16_HXX
#include "check.h"
#include <stdint.h>
template<typename T> struct ConstBuffer;

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_PCM_DSD_32_HXX
#define MPD_PCM_DSD_32_HXX
#include "check.h"
#include <stdint.h>
template<typename T> struct ConstBuffer;

View File

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

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_PCM_FORMAT_CONVERTER_HXX
#define MPD_PCM_FORMAT_CONVERTER_HXX
#include "check.h"
#include "SampleFormat.hxx"
#include "PcmBuffer.hxx"
#include "PcmDither.hxx"

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_GLUE_RESAMPLER_HXX
#define MPD_GLUE_RESAMPLER_HXX
#include "check.h"
#include "AudioFormat.hxx"
#include "FormatConverter.hxx"

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_PCM_INTERLEAVE_HXX
#define MPD_PCM_INTERLEAVE_HXX
#include "check.h"
#include "util/Compiler.h"
#include "util/ConstBuffer.hxx"

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "LibsamplerateResampler.hxx"
#include "config/Block.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 "Order.hxx"
#include "PcmBuffer.hxx"
#include "util/ConstBuffer.hxx"

View File

@@ -20,7 +20,6 @@
#ifndef MPD_PCM_ORDER_HXX
#define MPD_PCM_ORDER_HXX
#include "check.h"
#include "SampleFormat.hxx"
class PcmBuffer;

View File

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

View File

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

View File

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

View File

@@ -20,11 +20,11 @@
#ifndef PCM_CONVERT_HXX
#define PCM_CONVERT_HXX
#include "check.h"
#include "FormatConverter.hxx"
#include "ChannelsConverter.hxx"
#include "GlueResampler.hxx"
#include "AudioFormat.hxx"
#include "config.h"
#ifdef ENABLE_DSD
#include "PcmDsd.hxx"

View File

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

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_PCM_DOP_HXX
#define MPD_PCM_DOP_HXX
#include "check.h"
#include <stdint.h>
class PcmBuffer;

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_PCM_DSD_HXX
#define MPD_PCM_DSD_HXX
#include "check.h"
#include "PcmBuffer.hxx"
#include "AudioFormat.hxx"

View File

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

View File

@@ -20,9 +20,9 @@
#ifndef PCM_EXPORT_HXX
#define PCM_EXPORT_HXX
#include "check.h"
#include "SampleFormat.hxx"
#include "PcmBuffer.hxx"
#include "config.h"
template<typename T> struct ConstBuffer;
struct AudioFormat;

View File

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

View File

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

View File

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

View File

@@ -20,8 +20,6 @@
#ifndef MPD_PCM_SILENCE_HXX
#define MPD_PCM_SILENCE_HXX
#include "check.h"
#include <stdint.h>
template<typename T> struct WritableBuffer;

View File

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

View File

@@ -20,7 +20,6 @@
#ifndef MPD_PCM_TRAITS_HXX
#define MPD_PCM_TRAITS_HXX
#include "check.h"
#include "SampleFormat.hxx"
#include <stdint.h>

View File

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