[Spice-commits] spice/vd_agent.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Apr 1 11:25:34 UTC 2020
spice/vd_agent.h | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 2d3324b8999b06442fd92c03b260c08a51101521
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Sun Mar 22 07:58:04 2020 +0000
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 at redhat.com>
Acked-by: Marek Kedzierski <mkedzier at redhat.com>
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;
More information about the Spice-commits
mailing list