diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2018-01-03 14:40:52 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-01-05 23:34:30 -0500 |
commit | 908a9a6742b1010894fae2a4a9cf797b051d6c33 (patch) | |
tree | cb5381a70d543910de2b21b7bddf69702369c7cf /lib/vtls | |
parent | 129390a518c41739364081c8966a718f2ac347a4 (diff) | |
download | curl-908a9a6742b1010894fae2a4a9cf797b051d6c33.tar.gz |
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
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/cyassl.c | 2 | ||||
-rw-r--r-- | lib/vtls/darwinssl.c | 2 | ||||
-rw-r--r-- | lib/vtls/gskit.c | 4 | ||||
-rw-r--r-- | lib/vtls/openssl.c | 2 |
4 files changed, 1 insertions, 9 deletions
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 <limits.h> -#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 <limits.h> -#endif #include <Security/Security.h> /* 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 <limits.h> -#endif +#include <limits.h> #include <curl/curl.h> #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 <limits.h> -#endif #include "urldata.h" #include "sendf.h" |