Skip to content

Commit

Permalink
xp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Jan 8, 2025
1 parent 620dc2b commit f296540
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/ares_ipv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ struct addrinfo {
# define NS_INT16SZ 2
#endif

/* Windows XP Compatibility with later MSVC/Mingw versions */
#if defined(_WIN32)
# if !defined(IF_MAX_STRING_SIZE)
# define IF_MAX_STRING_SIZE 256 /* =256 in <ifdef.h> */
# endif
# if !defined(NDIS_IF_MAX_STRING_SIZE)
# define NDIS_IF_MAX_STRING_SIZE IF_MAX_STRING_SIZE /* =256 in <ifdef.h> */
# endif
#endif

#ifndef IF_NAMESIZE
# ifdef IFNAMSIZ
# define IF_NAMESIZE IFNAMSIZ
Expand Down

0 comments on commit f296540

Please sign in to comment.