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:
Viktor Szakats 2025-01-15 10:52:02 +01:00
parent c5bb4e77e4
commit f07612cd9a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
5 changed files with 14 additions and 29 deletions

View file

@ -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)