summaryrefslogtreecommitdiff
path: root/lib/http2.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-01-30 11:46:59 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-30 11:46:59 +0100
commit0f23662af74beceeddbbd8dc324b123eb90ca76e (patch)
treea08b63967661ffdb64fd4212024419acfdfb787d /lib/http2.h
parentdd011df9e1a31e66611f58758ee93f9a346b36a2 (diff)
downloadcurl-0f23662af74beceeddbbd8dc324b123eb90ca76e.tar.gz
http2.h: provide empty macros for non-http2 builds
Diffstat (limited to 'lib/http2.h')
-rw-r--r--lib/http2.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http2.h b/lib/http2.h
index 596771acd..c6a5c41dc 100644
--- a/lib/http2.h
+++ b/lib/http2.h
@@ -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