mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-12 21:28:47 +00:00
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>
This commit is contained in:
parent
7814bdf71d
commit
d77d056022
@ -52,6 +52,7 @@ typedef struct SpiceMsgData {
|
||||
} SpiceMsgData;
|
||||
|
||||
typedef struct SpiceMsgEmpty {
|
||||
uint8_t padding;
|
||||
} SpiceMsgEmpty;
|
||||
|
||||
typedef struct SpiceMsgInputsInit {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user