Permalink
Browse files

fixed logic on GMOFF flag

  • Loading branch information...
1 parent 14f19fd commit 66deef8e8abb1362f8fffe95e25faaa896679d0e @ohler55 committed Oct 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/ox/extconf.rb
View
2 ext/ox/extconf.rb
@@ -19,7 +19,7 @@
'RUBY_VERSION_MICRO' => version[2],
'HAS_RB_TIME_TIMESPEC' => ('ruby' == type && ('1.9.3' == RUBY_VERSION)) ? 1 : 0,
#'HAS_RB_TIME_TIMESPEC' => ('ruby' == type && ('1.9.3' == RUBY_VERSION || '2' <= version[0])) ? 1 : 0,
- 'HAS_TM_GMTOFF' => ('ruby' == type && '2' <= version[0] && !platform.include?('solaris')) ? 0 : 1,
+ 'HAS_TM_GMTOFF' => ('ruby' == type && (('1' == version[0] && '9' == version[1]) || '2' <= version[0]) && !platform.include?('solaris')) ? 1 : 0,
'HAS_ENCODING_SUPPORT' => (('ruby' == type || 'rubinius' == type) &&
(('1' == version[0] && '9' == version[1]) || '2' <= version[0])) ? 1 : 0,
'HAS_NANO_TIME' => ('ruby' == type && ('1' == version[0] && '9' == version[1]) || '2' <= version[0]) ? 1 : 0,

0 comments on commit 66deef8

Please sign in to comment.