]> git.ipfire.org Git - thirdparty/curl.git/commit
lib: merge `ENABLE_QUIC` C macro into `USE_HTTP3`
authorViktor Szakats <commit@vsz.me>
Thu, 11 Apr 2024 16:35:08 +0000 (16:35 +0000)
committerViktor Szakats <commit@vsz.me>
Sat, 13 Apr 2024 08:33:27 +0000 (08:33 +0000)
commit49f83c30e43749752072c65a43d553eb015453d1
treeebaaf67031d7bb0fa5b94736b94a126a7a2d4655
parente411c98f702f0fb38dceec95e7507ef15a00d12c
lib: merge `ENABLE_QUIC` C macro into `USE_HTTP3`

Before this patch `lib/curl_setup.h` defined these two macros right
next to each other, then the source code used them interchangeably.

After this patch, `USE_HTTP3` guards all HTTP/3 / QUIC features.
(Like `USE_HTTP2` does for HTTP/2.) `ENABLE_QUIC` is no longer used.

This patch doesn't change the way HTTP/3 is enabled via autotools
or CMake. Builders who enabled HTTP/3 manually by defining both of
these macros via `CPPFLAGS` can now delete `-DENABLE_QUIC`.

Closes #13352
15 files changed:
lib/altsvc.c
lib/config-os400.h
lib/connect.c
lib/curl_setup.h
lib/curl_trc.c
lib/http.c
lib/http.h
lib/setopt.c
lib/url.c
lib/version.c
lib/vquic/vquic-tls.c
lib/vquic/vquic-tls.h
lib/vquic/vquic.c
lib/vquic/vquic.h
lib/vquic/vquic_int.h