mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:51:53 +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
|
|
@ -59,7 +59,7 @@
|
|||
#include "sendf.h"
|
||||
#include "hostip.h"
|
||||
#include "hash.h"
|
||||
#include "share.h"
|
||||
#include "curl_share.h"
|
||||
#include "url.h"
|
||||
#include "multiif.h"
|
||||
#include "curl_threads.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue