summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorCameron Blomquist <cameron@blomqu.ist>2022-12-31 09:40:51 -0500
committerDaniel Stenberg <daniel@haxx.se>2023-01-01 00:51:35 +0100
commit99327018cfae5fcf4ec75b7921383f4a5ee16e7f (patch)
tree30fea7ca30d2fe25bddd68c02ce1ae5a8e5f1ec3 /lib/http.h
parentbecfe2ec783a40254761606a09069cf258d424ef (diff)
downloadcurl-99327018cfae5fcf4ec75b7921383f4a5ee16e7f.tar.gz
http: add additional condition for including stdint.h
stdint.h was only included in http.h when ENABLE_QUIC was defined, but symbols from stdint.h are also used when USE_NGHTTP2 is defined. This causes build errors when USE_NGHTTP2 is defined but ENABLE_QUIC is not. Closes #10185
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http.h b/lib/http.h
index 1d8e590ad..b24b2d17c 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2023, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -42,7 +42,7 @@ typedef enum {
#ifndef CURL_DISABLE_HTTP
-#if defined(_WIN32) && defined(ENABLE_QUIC)
+#if defined(_WIN32) && (defined(ENABLE_QUIC) || defined(USE_NGHTTP2))
#include <stdint.h>
#endif