From: James Yonan Date: Mon, 21 Apr 2014 07:10:03 +0000 (-0600) Subject: Use native strtoull() with MSVC 2013. X-Git-Tag: v2.4_alpha1~444 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b8e2f4a8143a7260a06b6999dcb21c4c72fc620;p=thirdparty%2Fopenvpn.git Use native strtoull() with MSVC 2013. MSVC 2013 C library now defines strtoull() function, so use the native implementation when available. Signed-off-by: James Yonan Acked-by: Gert Doering 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 --- diff --git a/config-msvc.h b/config-msvc.h index 99c00f9fc..9a95ae657 100644 --- a/config-msvc.h +++ b/config-msvc.h @@ -89,7 +89,10 @@ #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