diff options
| author | Werner Koch <[email protected]> | 2026-09-14 17:18:39 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2026-09-14 17:19:18 +0200 |
| commit | b973e43d0be8839990cc56d86e3ba575fd7efbb7 (patch) | |
| tree | 2ae4b980ac38fb1edda931458aec8c538d0dd03a | |
| parent | build: Add an entry for gnulib-common.m4. (diff) | |
| download | libgpg-error-b973e43d0be8839990cc56d86e3ba575fd7efbb7.tar.gz libgpg-error-b973e43d0be8839990cc56d86e3ba575fd7efbb7.zip | |
GPGRT_HAVE_PRAGMA_GCC_PUSH now also covers diagnostic push.
* src/gpg-error.h.in: Redefine GPGRT_HAVE_PRAGMA_GCC_PUSH
--
The old definition only covered push_option which is available since
gcc 4.4 (released 2009). The new definition also covers the
diagnostic push pragma which was introduced with 4.6 (released 2011).
| -rw-r--r-- | src/gpg-error.h.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpg-error.h.in b/src/gpg-error.h.in index a40f616..f4f06b3 100644 --- a/src/gpg-error.h.in +++ b/src/gpg-error.h.in @@ -259,9 +259,10 @@ typedef unsigned int gpg_error_t; # define GPGRT_HAVE_MACRO_FUNCTION 1 #endif -/* A macro defined if the pragma GCC push_options is available. */ +/* A macro defined if the "#pragma GCC push_option" and "#pragma GCC + * diagnostic push" options are available. */ #undef GPGRT_HAVE_PRAGMA_GCC_PUSH -#if _GPG_ERR_GCC_VERSION >= 40400 +#if _GPG_ERR_GCC_VERSION >= 40600 # define GPGRT_HAVE_PRAGMA_GCC_PUSH 1 #endif |
