mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2026-08-10 19:24:43 +00:00
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>
This commit is contained in:
parent
edd2bb7143
commit
2d3324b899
@ -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;
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user