mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
merges r31948 from trunk into ruby_1_9_2.
-- * time.c (rb_gmtime_r2): adjust indent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@32377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
185a5a726c
commit
fe21cf8b36
2 changed files with 13 additions and 13 deletions
24
time.c
24
time.c
|
@ -905,20 +905,20 @@ rb_localtime_r2(const time_t *t, struct tm *result)
|
|||
#define LOCALTIME(tm, result) (tzset(),rb_localtime_r2((tm), &(result)))
|
||||
|
||||
#if !defined(HAVE_STRUCT_TM_TM_GMTOFF)
|
||||
static struct tm *
|
||||
rb_gmtime_r2(const time_t *t, struct tm *result)
|
||||
{
|
||||
result = rb_gmtime_r(t, result);
|
||||
static struct tm *
|
||||
rb_gmtime_r2(const time_t *t, struct tm *result)
|
||||
{
|
||||
result = rb_gmtime_r(t, result);
|
||||
#if defined(HAVE_TIMEGM) && defined(LOCALTIME_OVERFLOW_PROBLEM)
|
||||
if (result) {
|
||||
struct tm tmp = *result;
|
||||
time_t t2 = timegm(&tmp);
|
||||
if (*t != t2)
|
||||
result = NULL;
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
if (result) {
|
||||
struct tm tmp = *result;
|
||||
time_t t2 = timegm(&tmp);
|
||||
if (*t != t2)
|
||||
result = NULL;
|
||||
}
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
# define GMTIME(tm, result) rb_gmtime_r2((tm), &(result))
|
||||
#endif
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#define RUBY_VERSION "1.9.2"
|
||||
#define RUBY_PATCHLEVEL 276
|
||||
#define RUBY_PATCHLEVEL 277
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
#define RUBY_VERSION_MINOR 9
|
||||
#define RUBY_VERSION_TEENY 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue