1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

file.c: birthtime on Windows

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-05-22 14:34:54 +00:00
parent 35cd72172c
commit bfa4f32069

1
file.c
View file

@ -791,6 +791,7 @@ stat_birthtime(struct stat *st)
return rb_time_nano_new(ts->tv_sec, ts->tv_nsec); return rb_time_nano_new(ts->tv_sec, ts->tv_nsec);
} }
#elif defined(_WIN32) #elif defined(_WIN32)
# define stat_birthtime stat_ctime
#else #else
# undef HAVE_STAT_BIRTHTIME # undef HAVE_STAT_BIRTHTIME
#endif #endif