diff options
Diffstat (limited to 'timev.h')
-rw-r--r-- | timev.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2,7 +2,6 @@ #define RUBY_TIMEV_H #include "ruby/ruby.h" -RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_BEGIN() struct vtm { VALUE year; /* 2000 for example. Integer. */ VALUE subsecx; /* 0 <= subsecx < TIME_SCALE. possibly Rational. */ @@ -16,7 +15,11 @@ struct vtm { unsigned int sec:6; /* 0..60 */ unsigned int wday:3; /* 0:Sunday, 1:Monday, ..., 6:Saturday 7:init */ unsigned int isdst:2; /* 0:StandardTime 1:DayLightSavingTime 3:init */ -} RBIMPL_ATTR_PACKED_STRUCT_UNALIGNED_END(); + + /* Flags for struct time_object */ + unsigned int tzmode:3; /* 0:localtime 1:utc 2:fixoff 3:uninitialized */ + unsigned int tm_got:1; +}; #define TIME_SCALE 1000000000 |