]> git.ozlabs.org Git - ccan/blobdiff - ccan/foreach/_info
memmem, bytestring: Fix includes in _info
[ccan] / ccan / foreach / _info
index a00ee8b39635a50a0e4ccec313542eb95992416d..f1a3c01d0675078888808cd636cf2c75e6064309 100644 (file)
@@ -1,6 +1,6 @@
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
-#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 <rusty@rustcorp.com.au>
  *
  * 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;
        }