aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-05-30 15:08:54 +0000
committerWerner Koch <[email protected]>2018-05-30 15:09:12 +0000
commit3eee9efc46f983fe0bf474c814944fef93a2a1b7 (patch)
tree424598fb7454e82a077f54f936d7f8412715a647
parentpo: More Spanish translations. (diff)
downloadlibgpg-error-3eee9efc46f983fe0bf474c814944fef93a2a1b7.tar.gz
libgpg-error-3eee9efc46f983fe0bf474c814944fef93a2a1b7.zip
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 <[email protected]>
-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)