From 040b306f58fa0cc175c66ed67f390c0a289ddd4e Mon Sep 17 00:00:00 2001 From: James Yonan Date: Mon, 21 Apr 2014 01:10:03 -0600 Subject: [PATCH] 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 (cherry picked from commit 6b8e2f4a8143a7260a06b6999dcb21c4c72fc620) --- config-msvc.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.2