]> granicus.if.org Git - curl/commitdiff
http2: satisfy external references even if http2 is not compiled in.
authorPatrick Monnerat <pm@datasphere.ch>
Tue, 21 Jul 2015 11:55:39 +0000 (13:55 +0200)
committerPatrick Monnerat <pm@datasphere.ch>
Tue, 21 Jul 2015 11:55:39 +0000 (13:55 +0200)
lib/http2.c

index 0ac9c4b12a6d3235ef9a586473d36be33420c5e5..0001fae5dfc64109d9c05f06356e044a7fc960db 100644 (file)
@@ -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 */