# HG changeset patch # User stephent # Date 1135259896 0 # Node ID 44a63e4a23cdd58bf75d7c424ef9d3bb6dfc8537 # Parent a81c56d10bdddbfff177c7a8df548a06c4152f9d [xemacs-hg @ 2005-12-22 13:58:15 by stephent] Don't use C99 features (declarations after code). <871x05mesn.fsf@tleepslib.sk.tsukuba.ac.jp> diff -r a81c56d10bdd -r 44a63e4a23cd lwlib/ChangeLog --- a/lwlib/ChangeLog Wed Dec 21 22:50:46 2005 +0000 +++ b/lwlib/ChangeLog Thu Dec 22 13:58:16 2005 +0000 @@ -1,3 +1,7 @@ +2005-12-21 Andrey Slusar + + * xlwmenu.c (make_drawing_gcs): Fix build with gcc 2.95. + 2005-12-18 Stephen J. Turnbull * XEmacs 21.5.24 "dandelion" is released. diff -r a81c56d10bdd -r 44a63e4a23cd lwlib/xlwmenu.c --- a/lwlib/xlwmenu.c Wed Dec 21 22:50:46 2005 +0000 +++ b/lwlib/xlwmenu.c Thu Dec 22 13:58:16 2005 +0000 @@ -2828,8 +2828,9 @@ XColor xcolor; Visual *visual; int ignore; + Colormap cmap; visual_info_from_widget ((Widget) mw, &visual, &ignore); - Colormap cmap = mw->core.colormap; + cmap = mw->core.colormap; xcolor.pixel = mw->core.background_pixel; XQueryColor (dpy, cmap, &xcolor); xcolor.red = (xcolor.red * 17) / 20;