diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2020-03-22 07:58:04 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2020-04-01 12:24:57 +0100 |
commit | 2d3324b8999b06442fd92c03b260c08a51101521 (patch) | |
tree | aef005e6d558b889ee845339e73b70f8b57f1811 | |
parent | edd2bb714306a72aeb9930d8d3d333ebb1bd0d6d (diff) |
vd_agent: Fix incompatibility with Microsoft compiler
Do not nest a zero-size array in another zero size array.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Marek Kedzierski <mkedzier@redhat.com>
-rw-r--r-- | spice/vd_agent.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |