summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac8
-rw-r--r--src/XpExtUtil.h14
2 files changed, 1 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac
index c721461..7779030 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,13 +43,7 @@ XORG_DEFAULT_OPTIONS
AC_PROG_LIBTOOL
# Check for X and print proto
-PKG_CHECK_MODULES(XPRINT, x11 xext xextproto xau printproto)
-
-# Check for _XEatDataWords function that may be patched into older Xlib release
-SAVE_LIBS="$LIBS"
-LIBS="$XPRINT_LIBS"
-AC_CHECK_FUNCS([_XEatDataWords])
-LIBS="$SAVE_LIBS"
+PKG_CHECK_MODULES(XPRINT, [x11 >= 1.6] xext xextproto xau printproto)
AC_CONFIG_FILES([Makefile
src/Makefile
diff --git a/src/XpExtUtil.h b/src/XpExtUtil.h
index 1889825..d479a95 100644
--- a/src/XpExtUtil.h
+++ b/src/XpExtUtil.h
@@ -48,20 +48,6 @@ extern char *_xpstrdup(
const char * /* str */
);
-#ifndef HAVE__XEATDATAWORDS
-#include <X11/Xmd.h> /* for LONG64 on 64-bit platforms */
-#include <limits.h>
-
-static inline void _XEatDataWords(Display *dpy, unsigned long n)
-{
-# ifndef LONG64
- if (n >= (ULONG_MAX >> 2))
- _XIOError(dpy);
-# endif
- _XEatData (dpy, n << 2);
-}
-#endif
-
_XFUNCPROTOEND
#endif /* _XPEXTUTIL_H */