mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
check: make sure all files outside contrib/ include "config.h" first.
And turn "" includes into full-path (which makes it easier to put config.h first, and finds some cases check-includes.sh missed previously). config.h sets _GNU_SOURCE which really needs to be done before any '#includes': we mainly got away with it with glibc, but other platforms like Alpine may have stricter requirements. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#include "db_postgres_sqlgen.c"
|
||||
#include "config.h"
|
||||
#include <ccan/ccan/tal/str/str.h>
|
||||
#include <ccan/endian/endian.h>
|
||||
#include <lightningd/log.h>
|
||||
#include <wallet/db_common.h>
|
||||
#include <wallet/db_postgres_sqlgen.c>
|
||||
|
||||
#if HAVE_POSTGRES
|
||||
/* Indented in order not to trigger the inclusion order check */
|
||||
|
||||
Reference in New Issue
Block a user