Commit 1f4312c3 authored by Rusty Russell's avatar Rusty Russell

config.h: HAVE_FLEXIBLE_ARRAY_MEMBER

parent fcf6cedb
......@@ -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
......
......@@ -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(); }" },
......
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