Skip to content
Snippets Groups Projects
Commit 0f23662a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

http2.h: provide empty macros for non-http2 builds

parent dd011df9
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,8 @@ CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req, ...@@ -38,6 +38,8 @@ CURLcode Curl_http2_request_upgrade(Curl_send_buffer *req,
struct connectdata *conn); struct connectdata *conn);
void Curl_http2_switched(struct connectdata *conn); void Curl_http2_switched(struct connectdata *conn);
#else /* USE_NGHTTP2 */ #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_request_upgrade(x,y) CURLE_OK
#define Curl_http2_switched(x) #define Curl_http2_switched(x)
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment