/* 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.
#include <stdio.h>
#include <sys/types.h>
-#if (defined __sun) && !(defined SUNOS41)
-#define SUNOS41
#include <X11/Xos.h>
-#undef SUNOS41
-#else
-#include <X11/Xos.h>
-#endif
#include <X11/IntrinsicP.h>
#include <X11/ObjectP.h>
#include <X11/StringDefs.h>
/* 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[] =
{