user32/tests: Fix compilation with gcc 2.95.
Francois Gouget
fgouget at free.fr
Sun May 20 05:10:53 CDT 2007
---
gcc 2.95 does not want to / know how to auto-size the structure's array
field based on the initialization data. Since that structure is used
just once anyway, there's no harm in explicitly sizing it.
dlls/user32/tests/menu.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/menu.c b/dlls/user32/tests/menu.c
index 5c94b4c..b270a25 100644
--- a/dlls/user32/tests/menu.c
+++ b/dlls/user32/tests/menu.c
@@ -1991,7 +1991,7 @@ static void test_menu_resource_layout(void)
static const struct
{
MENUITEMTEMPLATEHEADER mith;
- WORD data[];
+ WORD data[14];
} menu_template =
{
{ 0, 0 }, /* versionNumber, offset */
--
1.4.4.4
More information about the wine-patches
mailing list