cast, container_of, tlist: Fix warning with GCC 4.6: -Wunused-but-set-variable
[ccan] / config.h
index dbfe0295fdf4c32c49ae672108c2905a0af373ce..4e6ba3a7502774c2dbcd50c27eb6323e73a55d7b 100644 (file)
--- a/config.h
+++ b/config.h
@@ -1,7 +1,9 @@
 /* Generated by CCAN configurator */
 #ifndef CCAN_CONFIG_H
 #define CCAN_CONFIG_H
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE /* Always use GNU extensions. */
+#endif
 #define CCAN_COMPILER "cc"
 #define CCAN_CFLAGS "-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wwrite-strings -DCCAN_STR_DEBUG=1"