X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/a660037698bce151915e6e084593071134df1331..HEAD:/lwlib/xlwmenu.c diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c index 9317dea02b..94f10f34df 100644 --- a/lwlib/xlwmenu.c +++ b/lwlib/xlwmenu.c @@ -1,7 +1,7 @@ /* Implements a lightweight menubar widget. Copyright (C) 1992 Lucid, Inc. -Copyright (C) 1994-1995, 1997, 1999-2015 Free Software Foundation, Inc. +Copyright (C) 1994-1995, 1997, 1999-2016 Free Software Foundation, Inc. This file is part of the Lucid Widget Library. @@ -28,13 +28,7 @@ along with GNU Emacs. If not, see . */ #include #include -#if (defined __sun) && !(defined SUNOS41) -#define SUNOS41 #include -#undef SUNOS41 -#else -#include -#endif #include #include #include @@ -105,7 +99,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[] = {