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
2 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue