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
-1
View File
@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "AutoGunzipReader.hxx"
#include "GunzipReader.hxx"
-1
View File
@@ -20,7 +20,6 @@
#ifndef MPD_AUTO_GUNZIP_READER_HXX
#define MPD_AUTO_GUNZIP_READER_HXX
#include "check.h"
#include "PeekReader.hxx"
#include "util/Compiler.h"
-1
View File
@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "BufferedOutputStream.hxx"
#include "OutputStream.hxx"
-1
View File
@@ -30,7 +30,6 @@
#ifndef BUFFERED_OUTPUT_STREAM_HXX
#define BUFFERED_OUTPUT_STREAM_HXX
#include "check.h"
#include "util/Compiler.h"
#include "util/DynamicFifoBuffer.hxx"
-1
View File
@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "BufferedReader.hxx"
#include "Reader.hxx"
#include "util/TextFile.hxx"
-1
View File
@@ -20,7 +20,6 @@
#ifndef MPD_BUFFERED_READER_HXX
#define MPD_BUFFERED_READER_HXX
#include "check.h"
#include "util/Compiler.h"
#include "util/DynamicFifoBuffer.hxx"
-1
View File
@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "FileOutputStream.hxx"
#include "system/Error.hxx"
#include "util/StringFormat.hxx"
-1
View File
@@ -30,7 +30,6 @@
#ifndef FILE_OUTPUT_STREAM_HXX
#define FILE_OUTPUT_STREAM_HXX
#include "check.h"
#include "OutputStream.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/Compiler.h"
-1
View File
@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "FileReader.hxx"
#include "fs/FileInfo.hxx"
#include "system/Error.hxx"
-1
View File
@@ -20,7 +20,6 @@
#ifndef MPD_FILE_READER_HXX
#define MPD_FILE_READER_HXX
#include "check.h"
#include "Reader.hxx"
#include "fs/AllocatedPath.hxx"
#include "util/Compiler.h"
-1
View File
@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "GunzipReader.hxx"
#include "lib/zlib/Error.hxx"
-1
View File
@@ -20,7 +20,6 @@
#ifndef MPD_GUNZIP_READER_HXX
#define MPD_GUNZIP_READER_HXX
#include "check.h"
#include "Reader.hxx"
#include "util/StaticFifoBuffer.hxx"
#include "util/Compiler.h"
-1
View File
@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "GzipOutputStream.hxx"
#include "lib/zlib/Error.hxx"
-1
View File
@@ -30,7 +30,6 @@
#ifndef GZIP_OUTPUT_STREAM_HXX
#define GZIP_OUTPUT_STREAM_HXX
#include "check.h"
#include "OutputStream.hxx"
#include "util/Compiler.h"
-2
View File
@@ -30,8 +30,6 @@
#ifndef MPD_OUTPUT_STREAM_HXX
#define MPD_OUTPUT_STREAM_HXX
#include "check.h"
#include <stddef.h>
class OutputStream {
-1
View File
@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "PeekReader.hxx"
#include <algorithm>
-1
View File
@@ -20,7 +20,6 @@
#ifndef MPD_PEEK_READER_HXX
#define MPD_PEEK_READER_HXX
#include "check.h"
#include "Reader.hxx"
#include "util/Compiler.h"
-1
View File
@@ -20,7 +20,6 @@
#ifndef MPD_READER_HXX
#define MPD_READER_HXX
#include "check.h"
#include "util/Compiler.h"
#include <stddef.h>
-1
View File
@@ -30,7 +30,6 @@
#ifndef STDIO_OUTPUT_STREAM_HXX
#define STDIO_OUTPUT_STREAM_HXX
#include "check.h"
#include "OutputStream.hxx"
#include "util/Compiler.h"
-1
View File
@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "TextFile.hxx"
#include "FileReader.hxx"
#include "AutoGunzipReader.hxx"
+1 -1
View File
@@ -20,8 +20,8 @@
#ifndef MPD_TEXT_FILE_HXX
#define MPD_TEXT_FILE_HXX
#include "check.h"
#include "util/Compiler.h"
#include "config.h"
class Path;
class FileReader;