From e7ca560c3d93cee24b716e83b6fcf77958a2dde9 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 3 Aug 2018 10:03:07 +0200 Subject: [PATCH] configure: drop detection of stdint.h and inttypes.h The current code uses macros from inttypes.h. There is no point in detecting and selecting between stdint.h and inttypes.h as the latter is always needed. --- configure | 8 -------- sysincl.h | 9 +-------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/configure b/configure index c5de5ea..c6148ad 100755 --- a/configure +++ b/configure @@ -595,14 +595,6 @@ else fi fi -if test_code '' 'stdint.h' '' '' ''; then - add_def HAVE_STDINT_H -fi - -if test_code '' 'inttypes.h' '' '' ''; then - add_def HAVE_INTTYPES_H -fi - if test_code 'struct in_pktinfo' 'sys/socket.h netinet/in.h' '' '' ' struct in_pktinfo ipi; return sizeof (ipi.ipi_spec_dst.s_addr) + IP_PKTINFO;' diff --git a/sysincl.h b/sysincl.h index a9e4da0..54431de 100644 --- a/sysincl.h +++ b/sysincl.h @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -63,14 +64,6 @@ #include #endif -#ifdef HAVE_INTTYPES_H -#include -#elif HAVE_STDINT_H -#include -#else -/* Tough */ -#endif - #ifdef FEAT_IPV6 /* For inet_ntop() */ #include