1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-14 00:19:50 +02:00

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

View File

@ -159,6 +159,12 @@
# define GNUPG_GCC_A_SENTINEL(a) # define GNUPG_GCC_A_SENTINEL(a)
#endif #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 /* We need this type even if we are not using libreadline and or we
did not include libreadline in the current file. */ did not include libreadline in the current file. */