summaryrefslogtreecommitdiffstats
path: root/lib/warnless.h
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@lists.haxx.se>2022-04-27 06:11:01 (GMT)
committerBrad King <brad.king@kitware.com>2022-04-28 19:15:44 (GMT)
commit2a9bc9ebf09fbafa5378d143083434204e9f233e (patch)
treed55420489c10068efaa694b96db2f735539b4339 /lib/warnless.h
parenta1f6ec647cfab8d613897562f8ee5f81a8f6b68d (diff)
downloadCMake-2a9bc9ebf09fbafa5378d143083434204e9f233e.zip
CMake-2a9bc9ebf09fbafa5378d143083434204e9f233e.tar.gz
CMake-2a9bc9ebf09fbafa5378d143083434204e9f233e.tar.bz2
curl 2022-04-27 (1669b17d)
Code extracted from: https://github.com/curl/curl.git at commit 1669b17d3a1a1fd824308544ca0ec02a2a4f50ea (curl-7_83_0).
Diffstat (limited to 'lib/warnless.h')
-rw-r--r--lib/warnless.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/warnless.h b/lib/warnless.h
index 2c619bf..37ac5ba 100644
--- a/lib/warnless.h
+++ b/lib/warnless.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -22,6 +22,8 @@
*
***************************************************************************/
+#include "curl_setup.h"
+
#ifdef USE_WINSOCK
#include <curl/curl.h> /* for curl_socket_t */
#endif
@@ -65,7 +67,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);
@@ -78,7 +80,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__)