From fe1c21087dc794c34090ed94dc4ba3d391eee87f Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 7 Feb 2014 03:23:32 +0000 Subject: 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 --- include/ruby/win32.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/ruby/win32.h') 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 */ -- cgit v1.2.3