mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-10 15:56:18 +00:00
Assume C89 offsetof in xterm.c, xlwmenu.c
* lwlib/xlwmenu.c (offset): * src/xterm.c (cvt_string_to_pixel_args): Use offsetof, not XtOffset.
This commit is contained in:
parent
96a858a442
commit
b5919771ae
@ -105,7 +105,7 @@ xlwMenuTranslations [] =
|
||||
|
||||
/* FIXME: F10 should enter the menu, the first one in the menu-bar. */
|
||||
|
||||
#define offset(field) XtOffset(XlwMenuWidget, field)
|
||||
#define offset(field) offsetof (XlwMenuRec, field)
|
||||
static XtResource
|
||||
xlwMenuResources[] =
|
||||
{
|
||||
|
@ -1378,9 +1378,9 @@ x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap
|
||||
|
||||
static XtConvertArgRec cvt_string_to_pixel_args[] =
|
||||
{
|
||||
{XtWidgetBaseOffset, (XtPointer) XtOffset (Widget, core.screen),
|
||||
{XtWidgetBaseOffset, (XtPointer) offsetof (WidgetRec, core.screen),
|
||||
sizeof (Screen *)},
|
||||
{XtWidgetBaseOffset, (XtPointer) XtOffset (Widget, core.colormap),
|
||||
{XtWidgetBaseOffset, (XtPointer) offsetof (WidgetRec, core.colormap),
|
||||
sizeof (Colormap)}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user