Each header should only include the other headers it needs to compile; `devtools/reduce-includes.sh */*.h` does this. The C files then need additional includes if they don't compile. And remove the entirely useless wire/onion_wire.h, which only serves to include wire/onion_wiregen.h. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
15 lines
374 B
C
15 lines
374 B
C
#ifndef LIGHTNING_CLI_CONFIG_CLI_H
|
|
#define LIGHTNING_CLI_CONFIG_CLI_H
|
|
|
|
#include "config.h"
|
|
|
|
#ifndef CLN_TEST
|
|
/* Redefinition procedure is a very cool feature, but
|
|
if we try to redefine a procedure that is already
|
|
redefined somewhere (like read in alpine) we can have
|
|
tricky compilation error */
|
|
#define cli_read read
|
|
#endif
|
|
|
|
#endif /* LIGHTNING_CLI_CONFIG_CLI_H */
|