Skip to content

Commit

Permalink
lib/warnless.[ch]: only check for WIN32 and ignore _WIN32
Browse files Browse the repository at this point in the history
curl_setup.h automatically defines WIN32 if just _WIN32 is defined.
  • Loading branch information
mback2k committed Mar 14, 2022
1 parent 19b80ff commit f52d2ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/warnless.c
Expand Up @@ -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)
{
Expand All @@ -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__)

Expand Down
4 changes: 2 additions & 2 deletions lib/warnless.h
Expand Up @@ -65,7 +65,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);

Expand All @@ -78,7 +78,7 @@ ssize_t curlx_write(int fd, const void *buf, size_t count);
# define write(fd, buf, count) curlx_write(fd, buf, count)
#endif

#endif /* WIN32 || _WIN32 */
#endif /* WIN32 */

#if defined(__INTEL_COMPILER) && defined(__unix__)

Expand Down

0 comments on commit f52d2ae

Please sign in to comment.