diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-29 13:42:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-29 13:42:45 +0000 |
commit | a864c89f80ea8824aafae9ae6044de8eafb13a4c (patch) | |
tree | c3feb27110527c3af4cc591c8527034eb3541de2 /src/libcryptobox/cryptobox.h | |
parent | 4beb2f2970d709169db316483a6bc547fdcaba8d (diff) | |
download | rspamd-a864c89f80ea8824aafae9ae6044de8eafb13a4c.tar.gz rspamd-a864c89f80ea8824aafae9ae6044de8eafb13a4c.zip |
[Feature] Add aes-rng PRF to libottery
Diffstat (limited to 'src/libcryptobox/cryptobox.h')
-rw-r--r-- | src/libcryptobox/cryptobox.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h index 5637c3468..9c2665671 100644 --- a/src/libcryptobox/cryptobox.h +++ b/src/libcryptobox/cryptobox.h @@ -23,8 +23,10 @@ struct rspamd_cryptobox_segment { gsize len; }; -#if defined(__GNUC__) && ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8) || (__GNUC__ > 4)) -#define RSPAMD_HAS_TARGET_ATTR +#if defined(__GNUC__) && \ + ((defined(__clang__) && (__clang_major__ >= 4 || (__clang_major__ >= 3 && __clang_minor__ >= 8))) || \ + ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 8) || (__GNUC__ > 4))) +#define RSPAMD_HAS_TARGET_ATTR 1 #endif #define rspamd_cryptobox_MAX_NONCEBYTES 24 |