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:
Aric Stewart 2012-04-17 11:32:38 -05:00 committed by Alon Levy
parent 7814bdf71d
commit d77d056022

View File

@ -52,6 +52,7 @@ typedef struct SpiceMsgData {
} SpiceMsgData;
typedef struct SpiceMsgEmpty {
uint8_t padding;
} SpiceMsgEmpty;
typedef struct SpiceMsgInputsInit {