mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:43:38 +03:00
build: use native file open flags in Windows-specific code
To comply with official documentation. Also to make code compile with `NO_OLDNAMES` (mingw-w64) or `_CRT_DECLARE_NONSTDC_NAMES=0` (MSVC) set. Ref: #15652 Closes #20516
This commit is contained in:
parent
94349aa932
commit
462244447e
6 changed files with 10 additions and 8 deletions
|
|
@ -29,7 +29,7 @@
|
|||
#include "tool_operate.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define OPENMODE S_IREAD | S_IWRITE
|
||||
#define OPENMODE _S_IREAD | _S_IWRITE
|
||||
#else
|
||||
#define OPENMODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue