repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: fa7fbea12c4c8d80752fbe4afa552c605cdbafb9: path_to: revision_to:
commit fa7fbea12c4c8d80752fbe4afa552c605cdbafb9 Author: Emanuele GiaquintaDate: Tue Jan 4 23:12:10 2011 +0000 Remove configure test and fallback definition for XPointer. diff --git a/configure.ac b/configure.ac
--- a/configure.ac +++ b/configure.ac @@ -519,12 +519,6 @@ AC_CHECK_HEADERS( \ cwchar \ ) -AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])]) -if test x$rxvt_cv_xpointer = xyes; then - AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) -fi - AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access, [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([ diff --git a/src/rxvt.h b/src/rxvt.h
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -30,6 +30,8 @@
using namespace std;
+// we assume that Xlib.h defines XPointer, and it does since at least 1994...
+
extern "C" {
#include
#include
@@ -100,10 +102,6 @@ typedef int32_t tlen_t_; // specifically for use in the line_t structure
*****************************************************************************
*/
-#ifndef HAVE_XPOINTER
-typedef char *XPointer;
-#endif
-
#include
#include "background.h"
-----END OF PAGE-----