From 05c85ddc219aa7b353b9f98a912496e500fe7189 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sun, 26 Nov 2017 14:17:17 -0500 Subject: [PATCH] On VS 2013 and newer, actually use strtoll instead of redefining it to _strtoi64. --- json_util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/json_util.c b/json_util.c index c7c2325..b5bcd07 100644 --- a/json_util.c +++ b/json_util.c @@ -39,7 +39,10 @@ #endif /* HAVE_UNISTD_H */ #ifdef WIN32 -# define strtoll _strtoi64 +# if MSC_VER < 1800 +/* strtoll is available only since Visual Studio 2013 */ +# define strtoll _strtoi64 +# endif # define WIN32_LEAN_AND_MEAN # include # include -- 2.49.0