[Spice-commits] common/messages.h
Alon Levy
alon at kemper.freedesktop.org
Wed Apr 18 06:02:22 PDT 2012
common/messages.h | 1 +
1 file changed, 1 insertion(+)
New commits:
commit d77d056022206dc599033e31a20122e1a62f7888
Author: Aric Stewart <aric at codeweavers.com>
Date: Tue Apr 17 11:32:38 2012 -0500
add padding member to SpiceMsgEmpty
Empty structures are undefined in C, gcc handles them without issue
assigning a size of 0. However MSVC++ generates a hard error (C2015)
this allows messages.h to be included in c files compiled by MSVC++.
Signed-off-by: Aric Stewart <aric at codeweavers.com>
diff --git a/common/messages.h b/common/messages.h
index 58e8bee..106a8d3 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -52,6 +52,7 @@ typedef struct SpiceMsgData {
} SpiceMsgData;
typedef struct SpiceMsgEmpty {
+ uint8_t padding;
} SpiceMsgEmpty;
typedef struct SpiceMsgInputsInit {
More information about the Spice-commits
mailing list