summaryrefslogtreecommitdiffstats
path: root/config-msvc.h
diff options
context:
space:
mode:
Diffstat (limited to 'config-msvc.h')
-rw-r--r--config-msvc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config-msvc.h b/config-msvc.h
index ffd35f4..aa0eeff 100644
--- a/config-msvc.h
+++ b/config-msvc.h
@@ -128,3 +128,8 @@ typedef __int8 int8_t;
#include <config-msvc-local.h>
#endif
+// Vista and above has implementation of inet_ntop / inet_pton
+#if _WIN32_WINNT >= _WIN32_WINNT_VISTA
+ #define HAVE_INET_NTOP
+ #define HAVE_INET_PTON
+#endif