diff options
author | Aric Stewart <aric@codeweavers.com> | 2012-04-17 11:32:38 -0500 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-04-18 16:02:07 +0300 |
commit | d77d056022206dc599033e31a20122e1a62f7888 (patch) | |
tree | 75da39982c78f8debde7710d978d778c701b34ed | |
parent | 7814bdf71d20f69fc3e6862eed6b56f197ca2cc6 (diff) |
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@codeweavers.com>
-rw-r--r-- | common/messages.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |