diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2015-07-21 13:55:39 +0200 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2015-07-21 13:55:39 +0200 |
commit | fa0eeedf3542f10ea39c71908f3ed0fe6224ec05 (patch) | |
tree | 90254d338dbf104ceb3643aed25a8d59d87e0e3d | |
parent | 68d17643f5df467c634adc49f85306451f7668fc (diff) |
http2: satisfy external references even if http2 is not compiled in.
-rw-r--r-- | lib/http2.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/lib/http2.c b/lib/http2.c index 0ac9c4b12..0001fae5d 100644 --- a/lib/http2.c +++ b/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 */ |