From 5191f087de98461a0b7bfa4ec36e0d980f2f3206 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 29 Feb 2012 12:50:51 +0000 Subject: LRN: Enforce GCC bitfield layout for some structs on W32 --- src/include/gnunet_common.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/include/gnunet_common.h') diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index a1ef4ee24..f26d6bc98 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -140,6 +140,15 @@ */ #define GNUNET_PACKED __attribute__((packed)) +/** + * gcc-ism to get gcc bitfield layout when compiling with -mms-bitfields + */ +#if MINGW +#define GNUNET_GCC_STRUCT_LAYOUT __attribute__((gcc_struct)) +#else +#define GNUNET_GCC_STRUCT_LAYOUT +#endif + /** * gcc-ism to document unused arguments */ -- cgit v1.2.3