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,11 +17,11 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "AllowedFormat.hxx"
|
||||
#include "AudioParser.hxx"
|
||||
#include "util/IterableSplitString.hxx"
|
||||
#include "util/StringBuffer.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
|
@@ -20,8 +20,8 @@
|
||||
#ifndef MPD_ALSA_ALLOWED_FORMAT_HXX
|
||||
#define MPD_ALSA_ALLOWED_FORMAT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <forward_list>
|
||||
#include <string>
|
||||
|
@@ -20,9 +20,9 @@
|
||||
#ifndef MPD_ALSA_FORMAT_HXX
|
||||
#define MPD_ALSA_FORMAT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "pcm/SampleFormat.hxx"
|
||||
#include "util/Compiler.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "HwSetup.hxx"
|
||||
#include "Format.hxx"
|
||||
#include "system/ByteOrder.hxx"
|
||||
@@ -25,6 +24,7 @@
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "AudioFormat.hxx"
|
||||
#include "Log.hxx"
|
||||
#include "config.h"
|
||||
|
||||
static constexpr Domain alsa_output_domain("alsa_output");
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_ALSA_HW_SETUP_HXX
|
||||
#define MPD_ALSA_HW_SETUP_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "pcm/PcmExport.hxx"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "NonBlock.hxx"
|
||||
#include "event/MultiSocketMonitor.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_ALSA_NON_BLOCK_HXX
|
||||
#define MPD_ALSA_NON_BLOCK_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/ReusableArray.hxx"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_ALSA_PERIOD_BUFFER_HXX
|
||||
#define MPD_ALSA_PERIOD_BUFFER_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
Reference in New Issue
Block a user