mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:33:32 +03:00
lib/warnless.[ch]: only check for WIN32 and ignore _WIN32
curl_setup.h automatically defines WIN32 if just _WIN32 is defined. Therefore make sure curl_setup.h is included through warnless.h. Reviewed-by: Daniel Stenberg Reviewed-by: Jay Satiro Closes #8594
This commit is contained in:
parent
24f0fec405
commit
b478d59e9d
2 changed files with 6 additions and 4 deletions
|
|
@ -360,7 +360,7 @@ curl_socket_t curlx_sitosk(int i)
|
|||
|
||||
#endif /* USE_WINSOCK */
|
||||
|
||||
#if defined(WIN32) || defined(_WIN32)
|
||||
#if defined(WIN32)
|
||||
|
||||
ssize_t curlx_read(int fd, void *buf, size_t count)
|
||||
{
|
||||
|
|
@ -372,7 +372,7 @@ ssize_t curlx_write(int fd, const void *buf, size_t count)
|
|||
return (ssize_t)write(fd, buf, curlx_uztoui(count));
|
||||
}
|
||||
|
||||
#endif /* WIN32 || _WIN32 */
|
||||
#endif /* WIN32 */
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(__unix__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue