From 99ef9cd7f589b51921bfbe8d52735c104ef260e3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 25 Mar 2015 19:19:38 +0100 Subject: [PATCH] common: Add macro GNUPG_GCC_A_USED. * common/util.h (GNUPG_GCC_A_USED): New. Signed-off-by: Werner Koch --- common/util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/util.h b/common/util.h index 4761a2870..d22820d86 100644 --- a/common/util.h +++ b/common/util.h @@ -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. */