]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Check version header that is absent sometimes
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 18 Jul 2022 16:43:31 +0000 (17:43 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 18 Jul 2022 16:43:31 +0000 (17:43 +0100)
src/libserver/symcache/symcache_impl.cxx

index 8ffc55db0b68eeabcd02dce309a54462bcbedb1c..28db9aaa997d4e6d8f89178943f2efc15c8b26bf 100644 (file)
 #include "fmt/core.h"
 #include "contrib/t1ha/t1ha.h"
 
-#include <version>
+#ifdef __has_include
+# if __has_include(<version>)
+#   include <version>
+# endif
+#endif
 #include <cmath>
 
 namespace rspamd::symcache {