summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-07 03:23:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-02-07 03:23:32 +0000
commitfe1c21087dc794c34090ed94dc4ba3d391eee87f (patch)
treec698c440ea4a986d778b562d2bc5ab3a07af450e /include/ruby
parent5fe0030d023c6c53d14464f8fba903b2b041b3d9 (diff)
win32.h: define strtoll and strtoull for earlier VC
* include/ruby/win32.h (strtoll, strtoull): VC8 and later until VC12 have LONG_LONG but it is _int64, and provide i64 version functions only. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/win32.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index 070bab28f9..1219a48399 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -463,6 +463,11 @@ extern int rb_w32_truncate(const char *path, off_t length);
#define truncate rb_w32_truncate
#endif
+#if defined(_MSC_VER) && _MSC_VER >= 1400 && _MSC_VER < 1800
+#define strtoll _strtoi64
+#define strtoull _strtoui64
+#endif
+
/*
* stubs
*/