]> git.ozlabs.org Git - ccan/blobdiff - tools/tools.h
iscsi: add LICENCE link
[ccan] / tools / tools.h
index 0ea4a6cdcdc6c26b84f436e9f3036cb2a9f3b509..168a47bd28e0c595b3162c1c58d6a376d428c524 100644 (file)
@@ -1,6 +1,14 @@
 #ifndef CCAN_TOOLS_H
 #define CCAN_TOOLS_H
 #include <stdbool.h>
+#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,8 +16,6 @@
 
 #define SPACE_CHARS    " \f\n\r\t\v"
 
-#define CFLAGS "-g -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror"
-
 #define COVERAGE_CFLAGS "-fprofile-arcs -ftest-coverage"
 
 /* This actually compiles and runs the info file to get dependencies. */