]> git.ozlabs.org Git - ccan/commitdiff
config.h: HAVE_FLEXIBLE_ARRAY_MEMBER
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 1 Jan 2011 06:45:41 +0000 (17:15 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 1 Jan 2011 06:45:41 +0000 (17:15 +1030)
config.h
tools/configurator/configurator.c

index fc2b892d3a01423c943599022d9589aad83dfab3..7ef5d3baf622ec104a27f8814f2613ed5d8cb0b0 100644 (file)
--- a/config.h
+++ b/config.h
@@ -24,6 +24,7 @@
 #define HAVE_BYTESWAP_H 1
 #define HAVE_COMPOUND_LITERALS 1
 #define HAVE_FOR_LOOP_DECLARATION 0
+#define HAVE_FLEXIBLE_ARRAY_MEMBER 1
 #define HAVE_GETPAGESIZE 1
 #define HAVE_LITTLE_ENDIAN 1
 #define HAVE_MMAP 1
index ffa188d77bb539eba3b647c6a8dbf9232a8c9191..4445139c90fcfabd01989956e1e60cd8cc958e36 100644 (file)
@@ -85,6 +85,8 @@ static struct test tests[] = {
        { "HAVE_FOR_LOOP_DECLARATION", INSIDE_MAIN, NULL,
          "for (int i = 0; i < argc; i++) { return 0; };\n"
          "return 1;" },
+       { "HAVE_FLEXIBLE_ARRAY_MEMBER", OUTSIDE_MAIN, NULL,
+         "struct foo { unsigned int x; int arr[]; };" },
        { "HAVE_GETPAGESIZE", DEFINES_FUNC, NULL,
          "#include <unistd.h>\n"
          "static int func(void) { return getpagesize(); }" },