From b6e6e69dd8c594b916cc2cb4f0391906792613d3 Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Mon, 12 Dec 2016 16:12:49 +0100 Subject: [PATCH] Remove unused header checks and defines congigure.ac checkes for the presence of header files and creates define indicating if it was found. Some of these defines are never used, so the check (and the static define for Windows) can be safely removed. This is the case for the following headers: - langinfo.h - libintl.h - pthread.h - setjmp.h - sys/times.h --- configure.ac | 8 ++++---- windows/include/config.h | 15 --------------- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/configure.ac b/configure.ac index 8278e0d03..9e1e87116 100644 --- a/configure.ac +++ b/configure.ac @@ -426,11 +426,11 @@ dnl Checks for header files # AC_HEADER_STDC AC_CHECK_HEADERS(malloc.h \ - fcntl.h search.h pthread.h values.h limits.h termios.h \ - errno.h unistd.h strings.h setjmp.h \ - sys/time.h sys/times.h sys/types.h sys/select.h \ + fcntl.h search.h values.h limits.h termios.h \ + errno.h unistd.h strings.h \ + sys/time.h sys/types.h sys/select.h \ sys/stat.h sys/mman.h \ - sys/ioctl.h sys/inotify.h langinfo.h libintl.h crt_externs.h) + sys/ioctl.h sys/inotify.h crt_externs.h) AC_HEADER_TIME AC_HEADER_DIRENT AC_HEADER_STDBOOL diff --git a/windows/include/config.h b/windows/include/config.h index 0aa927027..aeed7fca2 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -159,9 +159,6 @@ /* Define if intptr_t is declared */ #define HAVE_INTPTR_T 1 -/* Define to 1 if you have the header file. */ -/* #undef HAVE_LANGINFO_H */ - /* Define if you have the lasi library */ /* #undef HAVE_LASI */ @@ -171,9 +168,6 @@ /* Define if the LIBGEN library has the basename feature */ /* #undef HAVE_LIBGEN */ -/* Define to 1 if you have the header file. */ -#define HAVE_LIBINTL_H 1 - /* Define if you have the JPEG library */ #define HAVE_LIBJPEG 1 @@ -225,9 +219,6 @@ /* Define to 1 if you have the `pow' function. */ #define HAVE_POW 1 -/* Define to 1 if you have the header file. */ -/* #undef HAVE_PTHREAD_H */ - /* Define if you have the Quartz framework for Mac OS X */ /* #undef HAVE_QUARTZ */ @@ -240,9 +231,6 @@ /* Define to 1 if you have the `setenv' function. */ /* #undef HAVE_SETENV */ -/* Define to 1 if you have the header file. */ -#define HAVE_SETJMP_H 1 - /* Define to 1 if you have the `setmode' function. */ #define HAVE_SETMODE 1 @@ -311,9 +299,6 @@ /* Define to 1 if you have the header file. */ #define HAVE_SYS_STAT_H 1 -/* Define to 1 if you have the header file. */ -/* #undef HAVE_SYS_TIMES_H */ - /* Define to 1 if you have the header file. */ #define HAVE_SYS_TIME_H 1 -- 2.40.0