diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-01 16:05:25 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-01 16:05:25 +0200 |
commit | a1262cc6118f8fe778d9f90ae59b228cc5be680f (patch) | |
tree | 20fcf90b9ba423365e278f580d9c73914601e2ff /spice | |
parent | 4cf3b18f62c55885be159aa666451d56c91d03ed (diff) | |
download | spice-protocol-a1262cc6118f8fe778d9f90ae59b228cc5be680f.tar.gz spice-protocol-a1262cc6118f8fe778d9f90ae59b228cc5be680f.tar.xz spice-protocol-a1262cc6118f8fe778d9f90ae59b228cc5be680f.zip |
Don't make SpicePath.segment a SpicePathSeg
The MS compiler doesn't like arrays of structures with an array
of length zero at the end, so we have to manually cast this when
using it.
Diffstat (limited to 'spice')
-rw-r--r-- | spice/draw.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spice/draw.h b/spice/draw.h index abf778f..d617b30 100644 --- a/spice/draw.h +++ b/spice/draw.h @@ -72,7 +72,7 @@ typedef struct SPICE_ATTR_PACKED SpicePathSeg { typedef struct SPICE_ATTR_PACKED SpicePath { uint32_t num_segments; - SpicePathSeg segments[0]; /* alert: variable size elements */ + uint32_t segments[0]; /* really SpicePathSeg, alert: variable size elements */ } SpicePath; typedef struct SPICE_ATTR_PACKED SpiceClipRects { |