diff options
author | Lev Stipakov | 2015-10-06 14:15:13 +0300 |
---|---|---|
committer | Gert Doering | 2015-10-06 13:17:34 +0200 |
commit | b0fe94115fc4a75094d15452b7b89a0c0849087c (patch) | |
tree | ee8a44a798f86b42fd4e66388b3404c0fb6773aa /config-msvc.h | |
parent | 6ef5df14917500f107fd843a6dba61355edaeea0 (diff) | |
download | openvpn-b0fe94115fc4a75094d15452b7b89a0c0849087c.zip openvpn-b0fe94115fc4a75094d15452b7b89a0c0849087c.tar.gz |
Continuation of MSVS fixes
* Upgrade API level to Vista to implement get_default_gateway_ipv6
* Define HAVE_INET_NTOP/PTON since Vista has its own implementation of
those
Signed-off-by: Lev Stipakov <lstipakov@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1444130113-23387-1-git-send-email-lstipakov@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10194
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'config-msvc.h')
-rw-r--r-- | config-msvc.h | 5 |
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 |