summaryrefslogtreecommitdiff
path: root/src/gpg-error.h.in
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-05-30 17:08:54 +0200
committerWerner Koch <wk@gnupg.org>2018-05-30 17:09:12 +0200
commit3eee9efc46f983fe0bf474c814944fef93a2a1b7 (patch)
tree424598fb7454e82a077f54f936d7f8412715a647 /src/gpg-error.h.in
parent619abb6211e8f1f777c90c6a3260ccdcc8d04c25 (diff)
downloadlibgpg-error-3eee9efc46f983fe0bf474c814944fef93a2a1b7.tar.gz
core: Fix problem with C11 and stdnoreturn.h.
* src/gpg-error.h.in (GPGRT_ATTR_NORETURN): Use gcc specific symbol name __noreturn__. -- GnuPG-bug-id: 4002 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gpg-error.h.in')
-rw-r--r--src/gpg-error.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in
index ce7d278..4c5ac38 100644
--- a/src/gpg-error.h.in
+++ b/src/gpg-error.h.in
@@ -178,7 +178,7 @@ typedef unsigned int gpg_error_t;
/* The noreturn attribute. */
#if _GPG_ERR_GCC_VERSION >= 20500
-# define GPGRT_ATTR_NORETURN __attribute__ ((noreturn))
+# define GPGRT_ATTR_NORETURN __attribute__ ((__noreturn__))
#else
# define GPGRT_ATTR_NORETURN
#endif
@@ -188,12 +188,12 @@ typedef unsigned int gpg_error_t;
# define GPGRT_ATTR_PRINTF(f, a) \
__attribute__ ((format(__gnu_printf__,f,a)))
# define GPGRT_ATTR_NR_PRINTF(f, a) \
- __attribute__ ((noreturn, format(__gnu_printf__,f,a)))
+ __attribute__ ((__noreturn__, format(__gnu_printf__,f,a)))
#elif _GPG_ERR_GCC_VERSION >= 20500
# define GPGRT_ATTR_PRINTF(f, a) \
__attribute__ ((format(printf,f,a)))
# define GPGRT_ATTR_NR_PRINTF(f, a) \
- __attribute__ ((noreturn, format(printf,f,a)))
+ __attribute__ ((__noreturn__, format(printf,f,a)))
#else
# define GPGRT_ATTR_PRINTF(f, a)
# define GPGRT_ATTR_NR_PRINTF(f, a)