]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Use native strtoull() with MSVC 2013.
authorJames Yonan <james@openvpn.net>
Mon, 21 Apr 2014 07:10:03 +0000 (01:10 -0600)
committerGert Doering <gert@greenie.muc.de>
Mon, 21 Apr 2014 11:14:13 +0000 (13:14 +0200)
MSVC 2013 C library now defines strtoull() function,
so use the native implementation when available.

Signed-off-by: James Yonan <james@openvpn.net>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1398064204-26476-3-git-send-email-james@openvpn.net>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8561
Signed-off-by: Gert Doering <gert@greenie.muc.de>
config-msvc.h

index 99c00f9fc25b0b306b6a72e765ad0a72144dcd7f..9a95ae65704bf7cf8079d5f2afa9f51b534827bd 100644 (file)
 #define strncasecmp strnicmp
 #define strcasecmp _stricmp
 #define snprintf _snprintf
+
+#if _MSC_VER < 1800
 #define strtoull strtoul
+#endif
 
 #define in_addr_t uint32_t
 #define ssize_t SSIZE_T