summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2020-03-22 07:58:04 +0000
committerFrediano Ziglio <fziglio@redhat.com>2020-04-01 12:24:57 +0100
commit2d3324b8999b06442fd92c03b260c08a51101521 (patch)
treeaef005e6d558b889ee845339e73b70f8b57f1811
parentedd2bb714306a72aeb9930d8d3d333ebb1bd0d6d (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.h4
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;