diff options
author | Werner Koch <wk@gnupg.org> | 2015-07-26 12:50:16 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-07-26 12:50:24 +0200 |
commit | d382242fb6789973ce8d246ec154a4a1468c24c0 (patch) | |
tree | 3809b220992ea4e49942a3dec3d7a2f5e96738f6 /dirmngr | |
parent | scd: support any curves defined by libgcrypt. (diff) | |
download | gnupg2-d382242fb6789973ce8d246ec154a4a1468c24c0.tar.xz gnupg2-d382242fb6789973ce8d246ec154a4a1468c24c0.zip |
Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros.
* common/util.h: Provide replacement for GPGRT_ATTR_ macros when using
libgpg-error < 1.20.
* common/mischelp.h: Ditto.
* common/types.h: Ditto.
--
Given that libgpg-error is a dependency of all GnuPG related libraries
it is better to define such macros at only one place instead of having
similar macros at a lot of places. For now we need repalcement
macros, though.
Diffstat (limited to 'dirmngr')
-rw-r--r-- | dirmngr/ks-engine-ldap.c | 2 | ||||
-rw-r--r-- | dirmngr/ks-engine.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dirmngr/ks-engine-ldap.c b/dirmngr/ks-engine-ldap.c index 4288119ee..1b8ef031a 100644 --- a/dirmngr/ks-engine-ldap.c +++ b/dirmngr/ks-engine-ldap.c @@ -1404,7 +1404,7 @@ modlist_lookup (LDAPMod **modlist, const char *attr) /* Dump a modlist to a file. This is useful for debugging. */ static estream_t modlist_dump (LDAPMod **modlist, estream_t output) - GNUPG_GCC_A_USED; + GPGRT_ATTR_USED; static estream_t modlist_dump (LDAPMod **modlist, estream_t output) diff --git a/dirmngr/ks-engine.h b/dirmngr/ks-engine.h index 985167aa3..aff6cf472 100644 --- a/dirmngr/ks-engine.h +++ b/dirmngr/ks-engine.h @@ -26,7 +26,7 @@ /*-- ks-action.c --*/ gpg_error_t ks_print_help (ctrl_t ctrl, const char *text); gpg_error_t ks_printf_help (ctrl_t ctrl, const char *format, - ...) GPGRT_GCC_A_PRINTF(2,3); + ...) GPGRT_ATTR_PRINTF(2,3); /*-- ks-engine-hkp.c --*/ gpg_error_t ks_hkp_resolve (ctrl_t ctrl, parsed_uri_t uri); |