summaryrefslogtreecommitdiff
path: root/json_util.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-11-07 16:50:58 +0200
committerAlexandru Ardelean <ardeleanalex@gmail.com>2017-11-07 16:51:01 +0200
commit03f3b95248cf82e35bee73f617d0ebfc37af7ef8 (patch)
treeb8a90d4486c21dd5ce17acfc8f32f17463dbb02d /json_util.c
parent5641227c9ba1da7dd69f0c3b4a5a024339340d88 (diff)
downloadjson-c-03f3b95248cf82e35bee73f617d0ebfc37af7ef8.tar.gz
json_util: define `strtoll` as _strtoi64 for MSVC
Got the idea from this blog post: http://www.enchantedage.com/node/231 Simple & concise stuff :) Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'json_util.c')
-rw-r--r--json_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/json_util.c b/json_util.c
index 00cdc30..c7c2325 100644
--- a/json_util.c
+++ b/json_util.c
@@ -39,6 +39,7 @@
#endif /* HAVE_UNISTD_H */
#ifdef WIN32
+# define strtoll _strtoi64
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
# include <io.h>