mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
5fe0030d02
commit
fe1c21087d
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue