aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-22 13:25:12 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-12-22 13:25:12 +0000
commite5026b003d4ce221af2e3505af499f4083d5ce65 (patch)
tree221eb0ce5d0f91b40a813d450e476e9c2a30556b /config.h.in
parent55efc237a33323d311bbc48240b495d2a54b3b03 (diff)
downloadrspamd-e5026b003d4ce221af2e3505af499f4083d5ce65.tar.gz
rspamd-e5026b003d4ce221af2e3505af499f4083d5ce65.zip
Pack fuzzy commands.
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 158140c9c..a699739de 100644
--- a/config.h.in
+++ b/config.h.in
@@ -90,6 +90,14 @@
# error "Undefined or unknown BYTE_ORDER"
#endif
+#ifdef _MSC_VER
+# define RSPAMD_PACKED(name) \
+ __pragma(pack(push, 1)) struct name __pragma(pack(pop))
+#elif defined(__GNUC__)
+# define RSPAMD_PACKED(name) struct __attribute__((packed)) name
+#else
+# define RSPAMD_PACKED(name)
+#endif
#cmakedefine HAVE_SYS_QUEUE_H 1