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

@@ -20,8 +20,7 @@
#ifndef NET_FEATURES_HXX
#define NET_FEATURES_HXX
/* feature macros are defined in config.h, and this header verifies
that it has been included earlier */
#include "check.h"
/* feature macros are defined in config.h */
#include "config.h"
#endif

View File

@@ -30,7 +30,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "HostParser.hxx"
#include "util/CharUtil.hxx"

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "IPv4Address.hxx"
#include <assert.h>

View File

@@ -27,7 +27,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "IPv6Address.hxx"
#include <assert.h>

View File

@@ -20,7 +20,6 @@
#ifndef NET_INIT_HXX
#define NET_INIT_HXX
#include "check.h"
#include "SocketError.hxx"
#ifdef _WIN32

View File

@@ -30,7 +30,6 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
#include "Resolver.hxx"
#include "AddressInfo.hxx"
#include "HostParser.hxx"

View File

@@ -30,6 +30,7 @@
#ifndef SOCKET_DESCRIPTOR_HXX
#define SOCKET_DESCRIPTOR_HXX
#include "Features.hxx"
#include "system/FileDescriptor.hxx"
#include <type_traits>

View File

@@ -17,7 +17,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "SocketError.hxx"
#include "util/Macros.hxx"

View File

@@ -30,7 +30,6 @@
#ifndef NET_TO_STRING_HXX
#define NET_TO_STRING_HXX
#include "check.h"
#include "util/Compiler.h"
#include <string>