]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/server: delete workaround for old-mingw
authorViktor Szakats <commit@vsz.me>
Tue, 12 Dec 2023 20:38:08 +0000 (20:38 +0000)
committerViktor Szakats <commit@vsz.me>
Wed, 13 Dec 2023 08:01:33 +0000 (08:01 +0000)
mingw-w64 1.0 comes with w32api v3.12, thus doesn't need this.

Follow-up to 38029101e2d78ba125732b3bab6ec267b80a0e72 #11625

Reviewed-by: Jay Satiro
Closes #12510

tests/server/util.c

index 5cfdab269f7e97bf36e4833612aa33070a446196..34bca8659d4ce2a120357c8fe8cd4de8c7a23f5c 100644 (file)
@@ -39,9 +39,6 @@
 #elif defined(HAVE_SYS_POLL_H)
 #include <sys/poll.h>
 #endif
-#ifdef __MINGW32__
-#include <w32api.h>
-#endif
 
 #define ENABLE_CURLX_PRINTF
 /* make the curlx header define all printf() functions to use the curlx_*
 #define EINVAL  22 /* errno.h value */
 #endif
 
-/* MinGW with w32api version < 3.6 declared in6addr_any as extern,
-   but lacked the definition */
-#if defined(ENABLE_IPV6) && defined(__MINGW32__)
-#if (__W32API_MAJOR_VERSION < 3) || \
-    ((__W32API_MAJOR_VERSION == 3) && (__W32API_MINOR_VERSION < 6))
-const struct in6_addr in6addr_any = {{ IN6ADDR_ANY_INIT }};
-#endif /* w32api < 3.6 */
-#endif /* ENABLE_IPV6 && __MINGW32__ */
-
 static struct timeval tvnow(void);
 
 /* This function returns a pointer to STATIC memory. It converts the given