aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-29 13:42:45 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-29 13:42:45 +0000
commita864c89f80ea8824aafae9ae6044de8eafb13a4c (patch)
treec3feb27110527c3af4cc591c8527034eb3541de2 /src/libcryptobox/cryptobox.h
parent4beb2f2970d709169db316483a6bc547fdcaba8d (diff)
downloadrspamd-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.h6
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