X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fforeach%2F_info;h=f1a3c01d0675078888808cd636cf2c75e6064309;hp=a00ee8b39635a50a0e4ccec313542eb95992416d;hb=74257cee33ae3033f961d5f22a0313b8cb1b18d4;hpb=daddafe53685b0b6f90a7746cbbd1a2e7df59216;ds=sidebyside diff --git a/ccan/foreach/_info b/ccan/foreach/_info index a00ee8b3..f1a3c01d 100644 --- a/ccan/foreach/_info +++ b/ccan/foreach/_info @@ -1,6 +1,6 @@ +#include "config.h" #include #include -#include "config.h" /** * foreach - macro for simple iteration of arrays @@ -10,7 +10,7 @@ * (ie. gcc), and not too bad (ie. a few compares and mallocs) for * other compilers. * - * License: LGPL (3 or any later version) + * License: LGPL (v3 or any later version) * Author: Rusty Russell * * Example: @@ -63,6 +63,9 @@ int main(int argc, char *argv[]) return 1; if (strcmp(argv[1], "depends") == 0) { +#if !HAVE_COMPOUND_LITERALS || !HAVE_FOR_LOOP_DECLARATION + printf("ccan/list\n"); +#endif return 0; }