From: Eric Haszlakiewicz Date: Sun, 26 Nov 2017 19:17:17 +0000 (-0500) Subject: On VS 2013 and newer, actually use strtoll instead of redefining it to _strtoi64. X-Git-Tag: json-c-0.13-20171207~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=05c85ddc219aa7b353b9f98a912496e500fe7189;p=thirdparty%2Fjson-c.git On VS 2013 and newer, actually use strtoll instead of redefining it to _strtoi64. --- diff --git a/json_util.c b/json_util.c index c7c23251..b5bcd07f 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