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 "CompositeStorage.hxx"
|
||||
#include "FileInfo.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_COMPOSITE_STORAGE_HXX
|
||||
#define MPD_COMPOSITE_STORAGE_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "StorageInterface.hxx"
|
||||
#include "thread/Mutex.hxx"
|
||||
#include "util/Compiler.h"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Configured.hxx"
|
||||
#include "Registry.hxx"
|
||||
#include "StorageInterface.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_STORAGE_CONFIG_HXX
|
||||
#define MPD_STORAGE_CONFIG_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <memory>
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_STORAGE_FILE_INFO_HXX
|
||||
#define MPD_STORAGE_FILE_INFO_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
#include <stdint.h>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "MemoryDirectoryReader.hxx"
|
||||
|
||||
#include <assert.h>
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_STORAGE_MEMORY_DIRECTORY_READER_HXX
|
||||
#define MPD_STORAGE_MEMORY_DIRECTORY_READER_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "StorageInterface.hxx"
|
||||
#include "FileInfo.hxx"
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "Registry.hxx"
|
||||
#include "StoragePlugin.hxx"
|
||||
#include "StorageInterface.hxx"
|
||||
@@ -26,6 +25,7 @@
|
||||
#include "plugins/SmbclientStorage.hxx"
|
||||
#include "plugins/NfsStorage.hxx"
|
||||
#include "plugins/CurlStorage.hxx"
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_STORAGE_REGISTRY_HXX
|
||||
#define MPD_STORAGE_REGISTRY_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <memory>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "StorageInterface.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "fs/Traits.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_STORAGE_INTERFACE_HXX
|
||||
#define MPD_STORAGE_INTERFACE_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <memory>
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_STORAGE_PLUGIN_HXX
|
||||
#define MPD_STORAGE_PLUGIN_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class Storage;
|
||||
|
@@ -22,7 +22,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "StorageState.hxx"
|
||||
#include "fs/io/TextFile.hxx"
|
||||
#include "fs/io/BufferedOutputStream.hxx"
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "CurlStorage.hxx"
|
||||
#include "storage/StoragePlugin.hxx"
|
||||
#include "storage/StorageInterface.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_STORAGE_CURL_HXX
|
||||
#define MPD_STORAGE_CURL_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct StoragePlugin;
|
||||
|
||||
extern const StoragePlugin curl_storage_plugin;
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "LocalStorage.hxx"
|
||||
#include "storage/StoragePlugin.hxx"
|
||||
#include "storage/StorageInterface.hxx"
|
||||
|
@@ -20,7 +20,6 @@
|
||||
#ifndef MPD_STORAGE_LOCAL_HXX
|
||||
#define MPD_STORAGE_LOCAL_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "util/Compiler.h"
|
||||
|
||||
#include <memory>
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "NfsStorage.hxx"
|
||||
#include "storage/StoragePlugin.hxx"
|
||||
#include "storage/StorageInterface.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_STORAGE_NFS_HXX
|
||||
#define MPD_STORAGE_NFS_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct StoragePlugin;
|
||||
|
||||
extern const StoragePlugin nfs_storage_plugin;
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "SmbclientStorage.hxx"
|
||||
#include "storage/StoragePlugin.hxx"
|
||||
#include "storage/StorageInterface.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_STORAGE_SMBCLIENT_HXX
|
||||
#define MPD_STORAGE_SMBCLIENT_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct StoragePlugin;
|
||||
|
||||
extern const StoragePlugin smbclient_storage_plugin;
|
||||
|
@@ -17,7 +17,6 @@
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#include "UdisksStorage.hxx"
|
||||
#include "LocalStorage.hxx"
|
||||
#include "storage/StoragePlugin.hxx"
|
||||
|
@@ -20,8 +20,6 @@
|
||||
#ifndef MPD_STORAGE_UDISKS_HXX
|
||||
#define MPD_STORAGE_UDISKS_HXX
|
||||
|
||||
#include "check.h"
|
||||
|
||||
struct StoragePlugin;
|
||||
|
||||
extern const StoragePlugin udisks_storage_plugin;
|
||||
|
Reference in New Issue
Block a user