* m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
defined before using it, for gcc -Wundef. Reported by Akim Demaille in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
+2012-05-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ _Noreturn: port config.h to gcc -Wundef
+ * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
+ defined before using it, for gcc -Wundef. Reported by Akim Demaille in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
+
2012-05-10 Bruno Haible <bruno@clisp.org>
system-quote: Refactor.
AC_DEFUN([gl_COMMON_BODY], [
AH_VERBATIM([_Noreturn],
[/* The _Noreturn keyword of C11. */
-#if !defined _Noreturn && __STDC_VERSION__ < 201112
+#if ! (defined _Noreturn \
+ || (defined __STDC_VERSION__ && 201112 <= __STDC_VERSION__))
# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
|| 0x5110 <= __SUNPRO_C)
# define _Noreturn __attribute__ ((__noreturn__))