Skip to content

Commit

Permalink
Use native strtoull() with MSVC 2013.
Browse files Browse the repository at this point in the history
MSVC 2013 C library now defines strtoull() function,
so use the native implementation when available.

Signed-off-by: James Yonan <[email protected]>
Acked-by: Gert Doering <[email protected]>
Message-Id: <[email protected]>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8561
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
jamesyonan authored and cron2 committed Apr 21, 2014
1 parent cc1cee7 commit 6b8e2f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config-msvc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b8e2f4

Please sign in to comment.