mirror of
https://github.com/curl/curl.git
synced 2026-04-16 16:31:42 +03:00
http2: satisfy external references even if http2 is not compiled in.
This commit is contained in:
parent
68d17643f5
commit
fa0eeedf35
1 changed files with 22 additions and 1 deletions
23
lib/http2.c
23
lib/http2.c
|
|
@ -1549,4 +1549,25 @@ CURLcode Curl_http2_switched(struct connectdata *conn,
|
|||
return CURLE_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
#else /* !USE_NGHTTP2 */
|
||||
|
||||
/* Satisfy external references even if http2 is not compiled in. */
|
||||
|
||||
#define CURL_DISABLE_TYPECHECK
|
||||
#include <curl/curl.h>
|
||||
|
||||
char *curl_pushheader_bynum(struct curl_pushheaders *h, size_t num)
|
||||
{
|
||||
(void) h;
|
||||
(void) num;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *curl_pushheader_byname(struct curl_pushheaders *h, const char *header)
|
||||
{
|
||||
(void) h;
|
||||
(void) header;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif /* USE_NGHTTP2 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue