check-includes: allow redundant "config.h"

We should actually be including this (as it may define _GNU_SOURCE
etc) before any system headers.  But where we include <assert.h> we
often didn't, because check-includes would complain that the headers
included it too.

Weaken that check, and include config.h in C files before assert.h.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-02-01 13:28:50 +10:30
parent c8198d9820
commit 06a54606a3
53 changed files with 53 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
#include "config.h"
#include <assert.h>
#include <common/msg_queue.h>
#include <common/utils.h>