summaryrefslogtreecommitdiff
path: root/build-aux/snippet
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-04-29 16:00:14 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-04-29 16:00:46 -0700
commit2170abddc59962473ce4441596e8a52db5385e54 (patch)
treea507ffff2e201966f2d06f187e005f1f35fc3930 /build-aux/snippet
parentc116f3004c8173c1df5fc0ead911567192e6625b (diff)
downloadgnulib-2170abddc59962473ce4441596e8a52db5385e54.tar.gz
_Noreturn: future-proof non-GNU and non-MSVC compilers
* build-aux/snippet/_Noreturn.h (_Noreturn): * m4/gnulib-common.m4 (gl_COMMON_BODY): Do not define _Noreturn if __STDC_VERSION__ indicates this is C11 or later. This is more likely to work with random future C compilers that are neither GNUish nor MSVCish. See Vincent Lefevre in <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
Diffstat (limited to 'build-aux/snippet')
-rw-r--r--build-aux/snippet/_Noreturn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/snippet/_Noreturn.h b/build-aux/snippet/_Noreturn.h
index 1a7b4daed0..c44ad89b7c 100644
--- a/build-aux/snippet/_Noreturn.h
+++ b/build-aux/snippet/_Noreturn.h
@@ -1,4 +1,4 @@
-#ifndef _Noreturn
+#if !defined _Noreturn && __STDC_VERSION__ < 201112
# if (3 <= __GNUC__ || (__GNUC__ == 2 && 8 <= __GNUC_MINOR__) \
|| 0x5110 <= __SUNPRO_C)
# define _Noreturn __attribute__ ((__noreturn__))