mirror of
https://github.com/curl/curl.git
synced 2026-07-03 15:07:17 +03:00
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
This commit is contained in:
parent
becfe2ec78
commit
99327018cf
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue