From d77d056022206dc599033e31a20122e1a62f7888 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Tue, 17 Apr 2012 11:32:38 -0500 Subject: 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 --- common/messages.h | 1 + 1 file changed, 1 insertion(+) 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 { -- cgit v1.2.3