summaryrefslogtreecommitdiff
path: root/src/gui_xmebw.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-01-31 19:09:12 +0000
committerBram Moolenaar <Bram@vim.org>2005-01-31 19:09:12 +0000
commitb23c33872aa46de39bdc2cd2cbded697afa6ad08 (patch)
tree5ea25ecb55e8227f7e45c4982b1b7adf323d1f58 /src/gui_xmebw.c
parent65c1b0166982f95d78106c3f0a3fac48424ba87d (diff)
downloadvim-git-b23c33872aa46de39bdc2cd2cbded697afa6ad08.tar.gz
updated for version 7.0046
Diffstat (limited to 'src/gui_xmebw.c')
-rw-r--r--src/gui_xmebw.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui_xmebw.c b/src/gui_xmebw.c
index d63cf5a42..648eeb318 100644
--- a/src/gui_xmebw.c
+++ b/src/gui_xmebw.c
@@ -24,14 +24,17 @@
#include <ctype.h>
#include <stdio.h>
#include <assert.h>
+#include <auto/config.h>
#include <Xm/XmP.h>
#include <Xm/DrawP.h>
-#ifndef LESSTIF_VERSION
+#if defined(HAVE_XM_TRAITP_H) && defined(HAVE_XM_MANAGER_H) \
+ && defined(HAVE_XM_UNHIGHLIGHT_H) && defined(HAVE_XM_XPMP_H)
# include <Xm/TraitP.h>
# include <Xm/Manager.h>
# include <Xm/UnhighlightT.h>
# include <Xm/XpmP.h>
+# define UNHIGHLIGHTT
#else
# include <X11/xpm.h>
#endif
@@ -523,7 +526,7 @@ draw_unhighlight(XmEnhancedButtonWidget eb)
if (XmIsManager(eb->core.parent))
{
-#ifndef LESSTIF_VERSION
+#ifdef UNHIGHLIGHTT
XmSpecifyUnhighlightTrait UnhighlightT;
if (((UnhighlightT = (XmSpecifyUnhighlightTrait) XmeTraitGet((XtPointer)