diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-22 13:25:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-12-22 13:25:12 +0000 |
commit | e5026b003d4ce221af2e3505af499f4083d5ce65 (patch) | |
tree | 221eb0ce5d0f91b40a813d450e476e9c2a30556b /config.h.in | |
parent | 55efc237a33323d311bbc48240b495d2a54b3b03 (diff) | |
download | rspamd-e5026b003d4ce221af2e3505af499f4083d5ce65.tar.gz rspamd-e5026b003d4ce221af2e3505af499f4083d5ce65.zip |
Pack fuzzy commands.
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 8 |
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 |