Mercurial > gnulib
comparison lib/_Noreturn.h @ 40246:c34f677e6117 default tip master
_Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
* lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
GCC 4.8.
author | Akim Demaille <akim.demaille@gmail.com> |
---|---|
date | Sun, 17 Mar 2019 19:27:20 +0100 |
parents | 4a9dba57ac9e |
children |
comparison
equal
deleted
inserted
replaced
40245:eeb8fe2e91ad | 40246:c34f677e6117 |
---|---|
1 #ifndef _Noreturn | 1 #ifndef _Noreturn |
2 # if 201103 <= (defined __cplusplus ? __cplusplus : 0) | 2 # if (201103 <= (defined __cplusplus ? __cplusplus : 0) \ |
3 && (!defined __GNUC__ || 4 < __GNUC__ + (8 <= __GNUC_MINOR__))) | |
3 # define _Noreturn [[noreturn]] | 4 # define _Noreturn [[noreturn]] |
4 # elif (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ | 5 # elif (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \ |
5 || 4 < __GNUC__ + (7 <= __GNUC_MINOR__)) | 6 || 4 < __GNUC__ + (7 <= __GNUC_MINOR__)) |
6 /* _Noreturn works as-is. */ | 7 /* _Noreturn works as-is. */ |
7 # elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C | 8 # elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C |