[pango] [HB] Bug 593231 - < c99 compiler dislikes ValueRecord



commit b16c2664af5be02dfa987f3e8449dcb04d108c00
Author: Behdad Esfahbod <behdad behdad org>
Date:   Wed Aug 26 18:53:43 2009 -0400

    [HB] Bug 593231 - < c99 compiler dislikes ValueRecord

 pango/opentype/hb-ot-layout-gpos-private.hh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pango/opentype/hb-ot-layout-gpos-private.hh b/pango/opentype/hb-ot-layout-gpos-private.hh
index 0357522..b152308 100644
--- a/pango/opentype/hb-ot-layout-gpos-private.hh
+++ b/pango/opentype/hb-ot-layout-gpos-private.hh
@@ -34,7 +34,9 @@
 /* Shared Tables: ValueRecord, Anchor Table, and MarkArray */
 
 typedef SHORT Value;
-typedef Value ValueRecord[];
+
+typedef Value ValueRecord[0];
+ASSERT_SIZE (ValueRecord, 0);
 
 struct ValueFormat : USHORT
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]