]> granicus.if.org Git - json-c/commitdiff
On VS 2013 and newer, actually use strtoll instead of redefining it to _strtoi64.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 26 Nov 2017 19:17:17 +0000 (14:17 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sun, 26 Nov 2017 19:17:17 +0000 (14:17 -0500)
json_util.c

index c7c2325141d838d297efe32c92d4883a23094ed2..b5bcd07f1e868f971530ba4413975116ea0d5be6 100644 (file)
 #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 <windows.h>
 # include <io.h>