]> granicus.if.org Git - json-c/commitdiff
json_util: define `strtoll` as _strtoi64 for MSVC
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 7 Nov 2017 14:50:58 +0000 (16:50 +0200)
committerAlexandru Ardelean <ardeleanalex@gmail.com>
Tue, 7 Nov 2017 14:51:01 +0000 (16:51 +0200)
Got the idea from this blog post:
  http://www.enchantedage.com/node/231

Simple & concise stuff :)

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
json_util.c

index 00cdc300430943dd6b7992bc3f576c322db9ca3b..c7c2325141d838d297efe32c92d4883a23094ed2 100644 (file)
@@ -39,6 +39,7 @@
 #endif /* HAVE_UNISTD_H */
 
 #ifdef WIN32
+# define strtoll _strtoi64
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 # include <io.h>