aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-24 10:37:22 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-24 10:37:22 +0100
commit414dd2d5b4eff49643617759db0eca0dd61ca39a (patch)
tree542a287c07eb57d25f3540bb3f096f795c0cd409 /config.h.in
parenteef2f3cac7c975af050efaf4cf1acafcb9b501e3 (diff)
downloadrspamd-414dd2d5b4eff49643617759db0eca0dd61ca39a.tar.gz
rspamd-414dd2d5b4eff49643617759db0eca0dd61ca39a.zip
[Minor] Restore old port behaviour
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index b70308331..412dd53e4 100644
--- a/config.h.in
+++ b/config.h.in
@@ -294,18 +294,22 @@
# define RSPAMD_ALIGNED(x) __declspec(align(x))
# define RSPAMD_OPTIMIZE(x)
# define RSPAMD_ALWAYS_INLINE
+# define RSPAMD_PURE_FUNCTION
#elif defined(__GNUC__)
# define RSPAMD_ALIGNED(x) __attribute__((aligned(x)))
# define RSPAMD_ALWAYS_INLINE __attribute__((always_inline))
+# define RSPAMD_PURE_FUNCTION __attribute__((pure))
#ifndef __clang__
# define RSPAMD_OPTIMIZE(x) __attribute__((__optimize__ (x)))
#else
# define RSPAMD_OPTIMIZE(x)
#endif
#else
+/* Unknown compiler */
# define RSPAMD_ALIGNED(x)
# define RSPAMD_OPTIMIZE(x)
# define RSPAMD_ALWAYS_INLINE
+# define RSPAMD_PURE_FUNCTION
#endif
#endif