drop the wchar.h/wctype.h/stdarg.h checks
Since gnulib provides these now, we can assume them.master
parent
9a2deb4182
commit
e7c43521fc
|
@ -12,10 +12,13 @@ modules="
|
||||||
iswblank
|
iswblank
|
||||||
regex
|
regex
|
||||||
snprintf-posix
|
snprintf-posix
|
||||||
|
stdarg
|
||||||
strcase
|
strcase
|
||||||
strcasestr-simple
|
strcasestr-simple
|
||||||
strnlen
|
strnlen
|
||||||
vsnprintf-posix
|
vsnprintf-posix
|
||||||
|
wchar
|
||||||
|
wctype-h
|
||||||
"
|
"
|
||||||
|
|
||||||
# Make sure the local gnulib git repo is up-to-date.
|
# Make sure the local gnulib git repo is up-to-date.
|
||||||
|
|
|
@ -57,7 +57,7 @@ AC_DEFINE_DIR([PKGDATADIR], [pkgdatadir], [Where data are placed to.])
|
||||||
|
|
||||||
dnl Checks for header files.
|
dnl Checks for header files.
|
||||||
|
|
||||||
AC_CHECK_HEADERS(libintl.h limits.h sys/param.h wchar.h wctype.h stdarg.h)
|
AC_CHECK_HEADERS(libintl.h limits.h sys/param.h)
|
||||||
|
|
||||||
dnl Checks for options.
|
dnl Checks for options.
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,8 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef ENABLE_UTF8
|
#ifdef ENABLE_UTF8
|
||||||
#ifdef HAVE_WCHAR_H
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
#endif
|
|
||||||
#ifdef HAVE_WCTYPE_H
|
|
||||||
#include <wctype.h>
|
#include <wctype.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
static bool use_utf8 = FALSE;
|
static bool use_utf8 = FALSE;
|
||||||
/* Whether we've enabled UTF-8 support. */
|
/* Whether we've enabled UTF-8 support. */
|
||||||
|
|
|
@ -49,9 +49,7 @@
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STDARG_H
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Suppress warnings for __attribute__((warn_unused_result)). */
|
/* Suppress warnings for __attribute__((warn_unused_result)). */
|
||||||
#define IGNORE_CALL_RESULT(call) do { if (call) {} } while(0)
|
#define IGNORE_CALL_RESULT(call) do { if (call) {} } while(0)
|
||||||
|
|
Loading…
Reference in New Issue