From 908a9a6742b1010894fae2a4a9cf797b051d6c33 Mon Sep 17 00:00:00 2001 From: Jay Satiro Date: Wed, 3 Jan 2018 14:40:52 -0500 Subject: build: remove HAVE_LIMITS_H check .. because limits.h presence isn't optional, it's required by C89. Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2 Closes https://github.com/curl/curl/pull/2215 --- lib/vtls/cyassl.c | 2 -- lib/vtls/darwinssl.c | 2 -- lib/vtls/gskit.c | 4 +--- lib/vtls/openssl.c | 2 -- 4 files changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/vtls') diff --git a/lib/vtls/cyassl.c b/lib/vtls/cyassl.c index e06522304..46b71bfd3 100644 --- a/lib/vtls/cyassl.c +++ b/lib/vtls/cyassl.c @@ -76,9 +76,7 @@ and that's a problem since options.h hasn't been included yet. */ #endif #endif -#ifdef HAVE_LIMITS_H #include -#endif #include "urldata.h" #include "sendf.h" diff --git a/lib/vtls/darwinssl.c b/lib/vtls/darwinssl.c index 316904224..53a7ec37b 100644 --- a/lib/vtls/darwinssl.c +++ b/lib/vtls/darwinssl.c @@ -39,9 +39,7 @@ #pragma clang diagnostic ignored "-Wtautological-pointer-compare" #endif /* __clang__ */ -#ifdef HAVE_LIMITS_H #include -#endif #include /* For some reason, when building for iOS, the omnibus header above does diff --git a/lib/vtls/gskit.c b/lib/vtls/gskit.c index de496dd12..8f0cc0bb8 100644 --- a/lib/vtls/gskit.c +++ b/lib/vtls/gskit.c @@ -61,9 +61,7 @@ #endif -#ifdef HAVE_LIMITS_H -# include -#endif +#include #include #include "urldata.h" diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 89f873342..8680af2f2 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -34,9 +34,7 @@ #ifdef USE_OPENSSL -#ifdef HAVE_LIMITS_H #include -#endif #include "urldata.h" #include "sendf.h" -- cgit v1.2.3