commit ffbaf16: [Minor] Uh-oh, fix compilers compatibility
Vsevolod Stakhov
vsevolod at rspamd.com
Sat Mar 25 15:00:05 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-03-25 14:58:50 +0000
URL: https://github.com/rspamd/rspamd/commit/ffbaf1667488eac079295f1c65b50d8a62c60fdc (HEAD -> master)
[Minor] Uh-oh, fix compilers compatibility
---
src/rspamd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rspamd.c b/src/rspamd.c
index afc027080..e1e7220b1 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -1296,7 +1296,7 @@ version (void)
#else
rspamd_printf ("LuaJIT enabled: FALSE\n");
#endif
-#if __has_feature(address_sanitizer)
+#if defined(__has_feature) && __has_feature(address_sanitizer)
rspamd_printf ("ASAN enabled: TRUE\n");
#else
rspamd_printf ("ASAN enabled: FALSE\n");
More information about the Commits
mailing list