summaryrefslogtreecommitdiff
path: root/src/wsdebug.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-24 21:56:24 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-24 21:56:24 +0000
commit446cb837a017fc1c1b144cb5c2a35cb90abfbbcf (patch)
tree6c1fe56f2db8d4adbeee792b181b0659c4d1f216 /src/wsdebug.c
parent3577c6fafb77da5419cd1001dac56f204d480bdc (diff)
downloadvim-git-446cb837a017fc1c1b144cb5c2a35cb90abfbbcf.tar.gz
updated for version 7.2a
Diffstat (limited to 'src/wsdebug.c')
-rw-r--r--src/wsdebug.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wsdebug.c b/src/wsdebug.c
index f41299a54..e8fd09481 100644
--- a/src/wsdebug.c
+++ b/src/wsdebug.c
@@ -40,7 +40,9 @@ void wsdebug(char *, ...);
void wstrace(char *, ...);
static int lookup(char *);
+#ifdef USE_WS_ERRORHANDLER
static int errorHandler(Display *, XErrorEvent *);
+#endif
/*
@@ -96,7 +98,9 @@ wsdebug_log_init(
} else {
ws_dlevel = WS_TRACE; /* default level */
}
- /* XSetErrorHandler(errorHandler); */
+#ifdef USE_WS_ERRORHANDLER
+ XSetErrorHandler(errorHandler);
+#endif
}
} /* end wsdebug_log_init */
@@ -149,6 +153,7 @@ lookup(
} /* end lookup */
+#ifdef USE_WS_ERRORHANDLER
static int
errorHandler(
Display *dpy,
@@ -172,6 +177,7 @@ errorHandler(
return 0;
}
+#endif