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 "ChannelsConverter.hxx"
|
||||
#include "PcmChannels.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_CONFIGURED_RESAMPLER_HXX
|
||||
#define MPD_CONFIGURED_RESAMPLER_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct ConfigData;
|
||||
class PcmResampler;
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "FallbackResampler.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_GLUE_RESAMPLER_HXX
|
||||
#define MPD_GLUE_RESAMPLER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "FormatConverter.hxx"
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Interleave.hxx"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_PCM_ORDER_HXX
|
||||
#define MPD_PCM_ORDER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "SampleFormat.hxx"
|
||||
|
||||
class PcmBuffer;
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "PcmBuffer.hxx"
|
||||
|
||||
void *
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_PCM_DOP_HXX
|
||||
#define MPD_PCM_DOP_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
class PcmBuffer;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_PCM_DSD_HXX
|
||||
#define MPD_PCM_DSD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "PcmBuffer.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_PCM_TRAITS_HXX
|
||||
#define MPD_PCM_TRAITS_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "SampleFormat.hxx"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user