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

This commit is contained in:
Daniel Stenberg 2014-01-30 11:46:59 +01:00
parent dd011df9e1
commit 0f23662af7

View File

@ -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