projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
various: add LICENSE comments.
[ccan]
/
ccan
/
foreach
/
_info
diff --git
a/ccan/foreach/_info
b/ccan/foreach/_info
index a00ee8b39635a50a0e4ccec313542eb95992416d..f1a3c01d0675078888808cd636cf2c75e6064309 100644
(file)
--- a/
ccan/foreach/_info
+++ b/
ccan/foreach/_info
@@
-1,6
+1,6
@@
+#include "config.h"
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include "config.h"
/**
* foreach - macro for simple iteration of arrays
/**
* 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.
*
* (ie. gcc), and not too bad (ie. a few compares and mallocs) for
* other compilers.
*
- * License: LGPL (3 or any later version)
+ * License: LGPL (
v
3 or any later version)
* Author: Rusty Russell <rusty@rustcorp.com.au>
*
* Example:
* 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) {
return 1;
if (strcmp(argv[1], "depends") == 0) {
+#if !HAVE_COMPOUND_LITERALS || !HAVE_FOR_LOOP_DECLARATION
+ printf("ccan/list\n");
+#endif
return 0;
}
return 0;
}