X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fdepends.c;h=2bf11415bd2e632290fa1e63a4efd3bd13add985;hp=5878ef61e0f1cf9a536e06dede43a67c04370391;hb=15290c3feb9b61967311659a865fb3b5d05b1a49;hpb=a8b248ea9de55316cac4423a99a727ca7b54e0fc diff --git a/tools/depends.c b/tools/depends.c index 5878ef61..2bf11415 100644 --- a/tools/depends.c +++ b/tools/depends.c @@ -112,6 +112,10 @@ static char **get_one_safe_deps(const void *ctx, char *str; unsigned int len; + /* Ignore lines starting with # (e.g. #include) */ + if (lines[i][0] == '#') + continue; + /* Start of line, or after ". */ if (strstarts(lines[i], "ccan/")) str = lines[i];