aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-08 22:27:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-08 22:27:04 +0000
commit544fea1f9f6e29eda29a616bbafd47b908ad7b6f (patch)
tree7d1059216e3692b0cb3480508c8eab823dd928d8 /config.h.in
parent7f1ad00467415ca80d22e9865dab0792a9ee27fa (diff)
downloadrspamd-544fea1f9f6e29eda29a616bbafd47b908ad7b6f.tar.gz
rspamd-544fea1f9f6e29eda29a616bbafd47b908ad7b6f.zip
Unify align macro.
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index c1e819fb2..e45f95f4c 100644
--- a/config.h.in
+++ b/config.h.in
@@ -472,6 +472,14 @@ typedef off_t goffset;
#include <gmime/gmime.h>
#endif
+#ifndef ALIGN
+#if defined(_MSC_VER)
+# define ALIGN(x) __declspec(align(x))
+#else
+# define ALIGN(x) __attribute__((aligned(x)))
+#endif
+#endif
+
/* Forwarded declaration */
struct module_ctx;
struct rspamd_config;