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

ruby-changes:33968

From: nobu <ko1@a...>
Date: Thu, 22 May 2014 23:34:58 +0900 (JST)
Subject: [ruby-changes:33968] nobu:r46049 (trunk): file.c: birthtime on Windows

nobu	2014-05-22 23:34:54 +0900 (Thu, 22 May 2014)

  New Revision: 46049

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

  Log:
    file.c: birthtime on Windows
    
    * file.c (stat_birthtime): `ctime` is actually `created time` on Windows.

  Modified files:
    trunk/file.c
Index: file.c
===================================================================
--- file.c	(revision 46048)
+++ file.c	(revision 46049)
@@ -791,6 +791,7 @@ stat_birthtime(struct stat *st) https://github.com/ruby/ruby/blob/trunk/file.c#L791
     return rb_time_nano_new(ts->tv_sec, ts->tv_nsec);
 }
 #elif defined(_WIN32)
+# define stat_birthtime stat_ctime
 #else
 # undef HAVE_STAT_BIRTHTIME
 #endif

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

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