diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-24 10:37:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-07-24 10:37:22 +0100 |
commit | 414dd2d5b4eff49643617759db0eca0dd61ca39a (patch) | |
tree | 542a287c07eb57d25f3540bb3f096f795c0cd409 /config.h.in | |
parent | eef2f3cac7c975af050efaf4cf1acafcb9b501e3 (diff) | |
download | rspamd-414dd2d5b4eff49643617759db0eca0dd61ca39a.tar.gz rspamd-414dd2d5b4eff49643617759db0eca0dd61ca39a.zip |
[Minor] Restore old port behaviour
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 4 |
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 |