summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32.h b/win32.h
index 528af6c..5b18e3c 100644
--- a/win32.h
+++ b/win32.h
@@ -41,6 +41,12 @@
* development environment.
*/
+/* MSVC headers do not define this macro, so do it here */
+#ifndef IN6_ARE_ADDR_EQUAL
+#define IN6_ARE_ADDR_EQUAL(a,b) \
+ (memcmp ((const void*)(a), (const void*)(b), sizeof (struct in6_addr)) == 0)
+#endif
+
void init_win32 (void);
void uninit_win32 (void);