From fc788dc35532ebff44b5828f686b42e0deeec52c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 10 Aug 2007 13:40:17 -0700 Subject: Convert old #ifdefs for HAS_WTYPE_H & HAS_WCHAR_H to autoconf checks --- configure.ac | 2 ++ xprop.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 70f7852..2d6d100 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,8 @@ XORG_MACROS_VERSION(1.1) AC_PROG_CC AC_PROG_INSTALL +AC_CHECK_HEADERS_ONCE([wchar.h wctype.h]) + # Checks for pkg-config packages PKG_CHECK_MODULES(XPROP, xmuu x11) AC_SUBST(XPROP_CFLAGS) diff --git a/xprop.c b/xprop.c index f27b13f..1cf941a 100644 --- a/xprop.c +++ b/xprop.c @@ -29,6 +29,7 @@ from The Open Group. */ /* $XFree86: xc/programs/xprop/xprop.c,v 1.15 2003/09/24 02:43:38 dawes Exp $ */ +#include "config.h" #include #include @@ -37,15 +38,15 @@ from The Open Group. #include #include #include -#ifdef HAS_WCHAR_H +#ifdef HAVE_WCHAR_H #include #endif -#ifdef HAS_WCTYPE_H +#ifdef HAVE_WCTYPE_H #include #endif #include -#ifndef HAS_WCTYPE_H +#ifndef HAVE_WCTYPE_H #define iswprint(x) isprint(x) #endif -- cgit v1.2.3