diff options
author | Werner Koch <[email protected]> | 2015-03-25 18:19:38 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-03-25 18:19:38 +0000 |
commit | 99ef9cd7f589b51921bfbe8d52735c104ef260e3 (patch) | |
tree | 86d5fa999fc936d0b3fce9c91ef5cb5cd8054fa3 | |
parent | doc: Document the changed default algos for gpgsm. (diff) | |
download | gnupg-99ef9cd7f589b51921bfbe8d52735c104ef260e3.tar.gz gnupg-99ef9cd7f589b51921bfbe8d52735c104ef260e3.zip |
common: Add macro GNUPG_GCC_A_USED.
* common/util.h (GNUPG_GCC_A_USED): New.
Signed-off-by: Werner Koch <[email protected]>
-rw-r--r-- | common/util.h | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |