From 6cdd5b1cc36bf3136b09f24ea59178369c543398 Mon Sep 17 00:00:00 2001 From: olsner Date: Thu, 22 Jan 2004 03:57:50 +0000 Subject: [PATCH] IPv6 constants for VC++6 that doesn't have them in the winsock lib This was SVN commit r153. --- source/lib/posix.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/lib/posix.cpp b/source/lib/posix.cpp index 5bfcb42f31..a8c12a1528 100755 --- a/source/lib/posix.cpp +++ b/source/lib/posix.cpp @@ -488,6 +488,15 @@ fp_getnameinfo_t getnameinfo; fp_getaddrinfo_t getaddrinfo; fp_freeaddrinfo_t freeaddrinfo; +/* IPv6 globals +These are included in the linux C libraries, and in newer platform SDK's, so +should only be needed in VC++6 or earlier. +*/ +#if _MSC_VER <= 1200 /* VC++6 or earlier */ +const struct in6_addr in6addr_any=IN6ADDR_ANY_INIT; /* :: */ +const struct in6_addr in6addr_loopback=IN6ADDR_LOOPBACK_INIT; /* ::1 */ +#endif + void entry(void) { // note: winsock header is also removed by this define