mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
lib: rename internal header share.h to curl_share.h to avoid collision
Windows CRTs have a `share.h`. Before this patch when trying to
`#include <share.h>` it, the compiler picked up curl's internal
`lib/share.h` instead. Rename it to avoid this issue.
CRT `share.h` has constants necessary for using safe open CRT functions.
Also rename `lib/share.c` to keep matching the header.
Ref: https://learn.microsoft.com/cpp/c-runtime-library/sharing-constants
Ref: 625f2c1644 #16949 #16991
Cherry-picked from #19643
Closes #19676
This commit is contained in:
parent
56f2479c14
commit
3887069c66
25 changed files with 25 additions and 25 deletions
|
|
@ -72,7 +72,7 @@
|
|||
#include "curlx/warnless.h"
|
||||
#include "conncache.h"
|
||||
#include "multihandle.h"
|
||||
#include "share.h"
|
||||
#include "curl_share.h"
|
||||
#include "http_proxy.h"
|
||||
#include "socks.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue