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,8 +17,8 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "CaseFold.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_ICU_CASE_FOLD
|
||||
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#ifndef MPD_ICU_CASE_FOLD_HXX
|
||||
#define MPD_ICU_CASE_FOLD_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "config.h"
|
||||
|
||||
#if defined(HAVE_ICU) || defined(_WIN32)
|
||||
#define HAVE_ICU_CASE_FOLD
|
||||
|
@@ -17,9 +17,9 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Collate.hxx"
|
||||
#include "util/AllocatedString.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_ICU
|
||||
#include "Util.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_ICU_COLLATE_HXX
|
||||
#define MPD_ICU_COLLATE_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
/**
|
||||
|
@@ -17,10 +17,10 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Compare.hxx"
|
||||
#include "CaseFold.hxx"
|
||||
#include "util/StringAPI.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_ICU_COMPARE_HXX
|
||||
#define MPD_ICU_COMPARE_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
#include "util/AllocatedString.hxx"
|
||||
|
||||
|
@@ -17,13 +17,13 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Converter.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
#include "util/AllocatedString.hxx"
|
||||
#include "util/AllocatedArray.hxx"
|
||||
#include "util/ConstBuffer.hxx"
|
||||
#include "util/FormatString.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
|
@@ -20,8 +20,8 @@
|
||||
#ifndef MPD_ICU_CONVERTER_HXX
|
||||
#define MPD_ICU_CONVERTER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_ICU
|
||||
#include "thread/Mutex.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Init.hxx"
|
||||
#include "Collate.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#ifndef MPD_ICU_INIT_HXX
|
||||
#define MPD_ICU_INIT_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_ICU
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Util.hxx"
|
||||
#include "util/AllocatedString.hxx"
|
||||
#include "util/AllocatedArray.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_ICU_UTIL_HXX
|
||||
#define MPD_ICU_UTIL_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <unicode/utypes.h>
|
||||
|
||||
template<typename T> struct ConstBuffer;
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Win32.hxx"
|
||||
#include "system/Error.hxx"
|
||||
#include "util/AllocatedString.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_ICU_WIN32_HXX
|
||||
#define MPD_ICU_WIN32_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <wchar.h>
|
||||
|
Reference in New Issue
Block a user