]> git.ozlabs.org Git - ccan/blobdiff - config.h
config.h: define _GNU_SOURCE
[ccan] / config.h
index fc2b892d3a01423c943599022d9589aad83dfab3..9d354869adc672d8044b5618f9d174ffd91df14c 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,4 +1,7 @@
 /* Generated by CCAN configurator */
+#ifndef CCAN_CONFIG_H
+#define CCAN_CONFIG_H
+#define _GNU_SOURCE /* Always use GNU extensions. */
 #define CCAN_COMPILER "cc"
 #define CCAN_CFLAGS "-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations"
 
@@ -6,6 +9,7 @@
 #define HAVE_ATTRIBUTE_COLD 1
 #define HAVE_ATTRIBUTE_CONST 1
 #define HAVE_ATTRIBUTE_MAY_ALIAS 1
+#define HAVE_ATTRIBUTE_NORETURN 1
 #define HAVE_ATTRIBUTE_PRINTF 1
 #define HAVE_ATTRIBUTE_UNUSED 1
 #define HAVE_ATTRIBUTE_USED 1
@@ -24,6 +28,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
@@ -32,3 +37,4 @@
 #define HAVE_TYPEOF 1
 #define HAVE_UTIME 1
 #define HAVE_WARN_UNUSED_RESULT 1
+#endif /* CCAN_CONFIG_H */