From e7c43521fc7fcf304e1727557a05894c7ee13acb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 21 Feb 2017 17:04:42 -0500 Subject: [PATCH] drop the wchar.h/wctype.h/stdarg.h checks Since gnulib provides these now, we can assume them. --- autogen.sh | 3 +++ configure.ac | 2 +- src/chars.c | 4 ---- src/nano.h | 2 -- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/autogen.sh b/autogen.sh index bb2f4e10..4fb0c779 100755 --- a/autogen.sh +++ b/autogen.sh @@ -12,10 +12,13 @@ modules=" iswblank regex snprintf-posix + stdarg strcase strcasestr-simple strnlen vsnprintf-posix + wchar + wctype-h " # Make sure the local gnulib git repo is up-to-date. diff --git a/configure.ac b/configure.ac index 659e4144..3549747b 100644 --- a/configure.ac +++ b/configure.ac @@ -57,7 +57,7 @@ AC_DEFINE_DIR([PKGDATADIR], [pkgdatadir], [Where data are placed to.]) 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. diff --git a/src/chars.c b/src/chars.c index 3f80e31e..af9d7af4 100644 --- a/src/chars.c +++ b/src/chars.c @@ -26,12 +26,8 @@ #include #ifdef ENABLE_UTF8 -#ifdef HAVE_WCHAR_H #include -#endif -#ifdef HAVE_WCTYPE_H #include -#endif static bool use_utf8 = FALSE; /* Whether we've enabled UTF-8 support. */ diff --git a/src/nano.h b/src/nano.h index b21ccdb5..eba20ace 100644 --- a/src/nano.h +++ b/src/nano.h @@ -49,9 +49,7 @@ #include #endif -#ifdef HAVE_STDARG_H #include -#endif /* Suppress warnings for __attribute__((warn_unused_result)). */ #define IGNORE_CALL_RESULT(call) do { if (call) {} } while(0)