aboutsummaryrefslogtreecommitdiffstats
path: root/config.h.in
diff options
context:
space:
mode:
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