mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
http2.h: provide empty macros for non-http2 builds
This commit is contained in:
parent
dd011df9e1
commit
0f23662af7
@ -38,6 +38,8 @@ CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req,
|
||||
struct connectdata *conn);
|
||||
void Curl_http2_switched(struct connectdata *conn);
|
||||
#else /* USE_NGHTTP2 */
|
||||
#define Curl_http2_init(x)
|
||||
#define Curl_http2_send_request(x)
|
||||
#define Curl_http2_request_upgrade(x,y) CURLE_OK
|
||||
#define Curl_http2_switched(x)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user