summaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-07 14:42:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-07 14:43:15 +0100
commit3ca316cd22f55b484b0a00a5818617dd585325b4 (patch)
treebee7488fb1dac0cd71b89f69abfca38430f622c7 /config.h.in
parentb9ef79d942ab8c71b2b05ca9d0d1adb01d1f0755 (diff)
downloadrspamd-3ca316cd22f55b484b0a00a5818617dd585325b4.tar.gz
rspamd-3ca316cd22f55b484b0a00a5818617dd585325b4.zip
[Minor] Unify substring search routines
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 6b695aa4a..d9be4fedf 100644
--- a/config.h.in
+++ b/config.h.in
@@ -326,8 +326,11 @@ typedef off_t goffset;
#ifndef RSPAMD_ALIGNED
#if defined(_MSC_VER)
# define RSPAMD_ALIGNED(x) __declspec(align(x))
+# define RSPAMD_OPTIMIZE(x)
+# define RSPAMD_ALWAYS_INLINE
#elif defined(__GNUC__)
# define RSPAMD_ALIGNED(x) __attribute__((aligned(x)))
+# define RSPAMD_ALWAYS_INLINE __attribute__((always_inline))
#ifndef __clang__
# define RSPAMD_OPTIMIZE(x) __attribute__((__optimize__ (x)))
#else
@@ -336,6 +339,7 @@ typedef off_t goffset;
#else
# define RSPAMD_ALIGNED(x)
# define RSPAMD_OPTIMIZE(x)
+# define RSPAMD_ALWAYS_INLINE
#endif
#endif