mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:33:31 +03:00
tidy-up: extend CURL_O_BINARY to lib and tests
Move `CURL_O_BINARY` definition from src to lib and use it from lib and tests code. Closes #16009
This commit is contained in:
parent
c5bb4e77e4
commit
f07612cd9a
5 changed files with 14 additions and 29 deletions
|
|
@ -66,14 +66,6 @@ extern FILE *tool_stderr;
|
|||
# include "tool_strdup.h"
|
||||
#endif
|
||||
|
||||
/* since O_BINARY is used in bitmasks, setting it to zero makes it usable in
|
||||
source code but yet it does not ruin anything */
|
||||
#ifdef O_BINARY
|
||||
#define CURL_O_BINARY O_BINARY
|
||||
#else
|
||||
#define CURL_O_BINARY 0
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
# define CURL_STRICMP(p1, p2) _stricmp(p1, p2)
|
||||
#elif defined(HAVE_STRCASECMP)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue