X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fdepends.c;h=2bf11415bd2e632290fa1e63a4efd3bd13add985;hp=5878ef61e0f1cf9a536e06dede43a67c04370391;hb=09e4858bdbd026244ab250ef11d82a2189d46e49;hpb=02336bbc250b6dde8d1d49d708df3cd318da1c1c;ds=sidebyside 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];