diff options
author | Jeff King <peff@peff.net> | 2017-08-09 08:02:07 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-09 10:42:48 -0700 |
commit | 01e08e4eca06c06203ed64e15d40183e75576337 (patch) | |
tree | 5bdb44d1a017aaa681888c5c9f428725e23f24d4 | |
parent | f93c0b11a7c4654bd0a2fc7b74849a778c204b83 (diff) | |
download | git-jk/drop-ancient-curl.tar.gz |
http: #error on too-old curljk/drop-ancient-curl
We already fail to build with versions of curl older than
7.19.4. But doing an explicit check with an #error has two
benefits.
One is that it makes it clear to users that the build
failure is intentional, so they don't waste time trying to
debug it.
And two is that it documents our current "too old"
assumption, so that we know whether we need use an #ifdef
when using newer curl features in future patches.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | http.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ #include "remote.h" #include "url.h" +#if LIBCURL_VERSION_NUM < 0x071304 +#error "your libcurl version is too old; Git requires curl >= 7.19.4" +#endif + #define DEFAULT_MAX_REQUESTS 5 struct slot_results { |