mirror of
https://github.com/curl/curl.git
synced 2026-05-04 18:59:55 +03:00
lib/sendf.h: forward declare two structs
To fix non-unity builds using certain header orders (seen in ntlm.c with
the include order changed):
```
lib/vauth/../sendf.h:117:27: error: ‘struct Curl_cwriter’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
117 | struct Curl_cwriter *writer);
| ^~~~~~~~~~~~
lib/vauth/../sendf.h:215:54: error: ‘struct Curl_creader’ declared inside parameter list will not be visible outside of this definition or declaration [-Werror]
215 | CURLcode (*do_init)(struct Curl_easy *data, struct Curl_creader *reader);
| ^~~~~~~~~~~~
[...]
```
Ref: https://github.com/curl/curl/actions/runs/19785420705/job/56691185397?pr=19760
Ref: #19760
Closes #19761
This commit is contained in:
parent
ed331cea80
commit
545f2f387d
1 changed files with 4 additions and 0 deletions
|
|
@ -52,6 +52,10 @@
|
|||
#define CLIENTWRITE_EOS (1<<7) /* End Of transfer download Stream */
|
||||
#define CLIENTWRITE_0LEN (1<<8) /* write even 0-length buffers */
|
||||
|
||||
/* Forward declarations */
|
||||
struct Curl_creader;
|
||||
struct Curl_cwriter;
|
||||
|
||||
/**
|
||||
* Write `len` bytes at `prt` to the client. `type` indicates what
|
||||
* kind of data is being written.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue