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,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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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");

View File

@@ -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>

View File

@@ -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"

View File

@@ -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>

View File

@@ -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>