From 2d3324b8999b06442fd92c03b260c08a51101521 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Sun, 22 Mar 2020 07:58:04 +0000 Subject: vd_agent: Fix incompatibility with Microsoft compiler Do not nest a zero-size array in another zero size array. Signed-off-by: Frediano Ziglio Acked-by: Marek Kedzierski --- spice/vd_agent.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spice/vd_agent.h b/spice/vd_agent.h index 9342558..af42562 100644 --- a/spice/vd_agent.h +++ b/spice/vd_agent.h @@ -325,7 +325,11 @@ typedef struct SPICE_ATTR_PACKED VDAgentDeviceDisplayInfo { */ typedef struct SPICE_ATTR_PACKED VDAgentGraphicsDeviceInfo { uint32_t count; +#ifdef _MSC_VER + uint8_t display_info[0]; +#else VDAgentDeviceDisplayInfo display_info[0]; +#endif } VDAgentGraphicsDeviceInfo; -- cgit v1.2.3