[前][次][番号順一覧][スレッド一覧]

ruby-changes:32796

From: nobu <ko1@a...>
Date: Fri, 7 Feb 2014 12:23:43 +0900 (JST)
Subject: [ruby-changes:32796] nobu:r44875 (trunk): win32.h: define strtoll and strtoull for earlier VC

nobu	2014-02-07 12:23:32 +0900 (Fri, 07 Feb 2014)

  New Revision: 44875

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44875

  Log:
    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.

  Modified files:
    trunk/include/ruby/win32.h
Index: include/ruby/win32.h
===================================================================
--- include/ruby/win32.h	(revision 44874)
+++ include/ruby/win32.h	(revision 44875)
@@ -463,6 +463,11 @@ extern int 	 rb_w32_truncate(const char https://github.com/ruby/ruby/blob/trunk/include/ruby/win32.h#L463
 #define truncate rb_w32_truncate
 #endif
 
+#if defined(_MSC_VER) && _MSC_VER >= 1400 && _MSC_VER < 1800
+#define strtoll  _strtoi64
+#define strtoull _strtoui64
+#endif
+
 /*
  * stubs
  */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]