Commit c1bace5e authored by Rusty Russell's avatar Rusty Russell

stringbuilder: fix ccan/str test dependency.

It's a test dependency, not a core one, so it belongs under "testdepends".
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 9eb11099
......@@ -48,10 +48,11 @@ int main(int argc, char *argv[])
return 1;
if (strcmp(argv[1], "depends") == 0) {
/*
* This triggers a circular dependency!
* printf("ccan/str\n");
*/
return 0;
}
if (strcmp(argv[1], "testdepends") == 0) {
printf("ccan/str\n");
return 0;
}
......
#include <ccan/stringbuilder/stringbuilder.h>
#include <ccan/stringbuilder/stringbuilder.c>
#include <ccan/str/str.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
/*
* This triggers a circular dependency
* #include <ccan/str/str.h>
*
* We only want the following macro:
*/
#define streq(s1,s2) (!strcmp(s1,s2))
#include <ccan/tap/tap.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment