Skip to content

Commit

Permalink
tests/server: delete workaround for old-mingw
Browse files Browse the repository at this point in the history
mingw-w64 1.0 comes with w32api v3.12, thus doesn't need this.

Follow-up to 3802910 #11625

Reviewed-by: Jay Satiro
Closes #12510
  • Loading branch information
vszakats committed Dec 13, 2023
1 parent 043523a commit 246e0d8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/server/util.c
Expand Up @@ -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_*
Expand All @@ -58,15 +55,6 @@
#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
Expand Down

0 comments on commit 246e0d8

Please sign in to comment.