[Spice-commits] spice/draw.h
Alexander Larsson
alexl at kemper.freedesktop.org
Thu Jul 1 07:06:55 PDT 2010
spice/draw.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a1262cc6118f8fe778d9f90ae59b228cc5be680f
Author: Alexander Larsson <alexl at redhat.com>
Date: Thu Jul 1 16:05:25 2010 +0200
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.
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 {
More information about the Spice-commits
mailing list