common: Add macro GNUPG_GCC_A_USED.

* common/util.h (GNUPG_GCC_A_USED): New.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2015-03-25 19:19:38 +01:00
parent 674e9a02ab
commit 99ef9cd7f5
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,12 @@
# define GNUPG_GCC_A_SENTINEL(a)
#endif
#if __GNUC__ >= 4
# define GNUPG_GCC_A_USED __attribute__ ((used))
#else
# define GNUPG_GCC_A_USED
#endif
/* We need this type even if we are not using libreadline and or we
did not include libreadline in the current file. */