X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Ftools.h;h=168a47bd28e0c595b3162c1c58d6a376d428c524;hp=9bc7e1fcfda7e2f1148d0db40f545ecb3d5a362f;hb=ee0e05e46813b239453e9f52b924d4d9df4607df;hpb=63bceea014e091a2f2907e49f7c3b33f042106f4 diff --git a/tools/tools.h b/tools/tools.h index 9bc7e1fc..168a47bd 100644 --- a/tools/tools.h +++ b/tools/tools.h @@ -1,6 +1,14 @@ #ifndef CCAN_TOOLS_H #define CCAN_TOOLS_H #include +#include "config.h" + +#ifndef CCAN_COMPILER +#define CCAN_COMPILER "cc" +#endif +#ifndef CCAN_CFLAGS +#define CCAN_CFLAGS "-g -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror" +#endif #define IDENT_CHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ "abcdefghijklmnopqrstuvwxyz" \ @@ -8,9 +16,6 @@ #define SPACE_CHARS " \f\n\r\t\v" -/* FIXME: Nested functions break with -Wmissing-prototypes -Wmissing-declarations */ -#define CFLAGS "-g -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Werror" - #define COVERAGE_CFLAGS "-fprofile-arcs -ftest-coverage" /* This actually compiles and runs the info file to get dependencies. */