]> granicus.if.org Git - curl/commitdiff
http2.h: provide empty macros for non-http2 builds
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Jan 2014 10:46:59 +0000 (11:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Jan 2014 10:46:59 +0000 (11:46 +0100)
lib/http2.h

index 596771acd7c24a6684c2d9b7be68402211249a54..c6a5c41dcb9bdc61b691f014bf92d3f1f27fa399 100644 (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