aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_common.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-29 12:50:51 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-29 12:50:51 +0000
commit5191f087de98461a0b7bfa4ec36e0d980f2f3206 (patch)
tree03da7e00df3469defb48c5acbfc756976b36101a /src/include/gnunet_common.h
parenta74f95cb209906901dc44cff013fa9200c4e2e4e (diff)
downloadgnunet-5191f087de98461a0b7bfa4ec36e0d980f2f3206.tar.gz
gnunet-5191f087de98461a0b7bfa4ec36e0d980f2f3206.zip
LRN: Enforce GCC bitfield layout for some structs on W32
Diffstat (limited to 'src/include/gnunet_common.h')
-rw-r--r--src/include/gnunet_common.h9
1 files changed, 9 insertions, 0 deletions
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
@@ -141,6 +141,15 @@
141#define GNUNET_PACKED __attribute__((packed)) 141#define GNUNET_PACKED __attribute__((packed))
142 142
143/** 143/**
144 * gcc-ism to get gcc bitfield layout when compiling with -mms-bitfields
145 */
146#if MINGW
147#define GNUNET_GCC_STRUCT_LAYOUT __attribute__((gcc_struct))
148#else
149#define GNUNET_GCC_STRUCT_LAYOUT
150#endif
151
152/**
144 * gcc-ism to document unused arguments 153 * gcc-ism to document unused arguments
145 */ 154 */
146#define GNUNET_UNUSED __attribute__((unused)) 155#define GNUNET_UNUSED __attribute__((unused))