diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-25 07:00:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-25 07:00:10 +0000 |
commit | df9199d468ffd0b0dfc669dbbb8923301a4b1d07 (patch) | |
tree | 7e3714b240777b2637cdfecadc8741daa09e87d9 /time.c | |
parent | 7af1261dc8478fde09aa7ed0c9052c03917f2c18 (diff) | |
download | bundler-df9199d468ffd0b0dfc669dbbb8923301a4b1d07.tar.gz |
configure.in, win32/Makefile.sub: PACKED_STRUCT with VC
* configure.in (PACKED_STRUCT): check VC pragma too, and make
function-style macro.
* win32/Makefile.sub (PACKED_STRUCT): enable with VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1740,12 +1740,12 @@ localtimew(wideval_t timew, struct vtm *result) return result; } -struct time_object { +PACKED_STRUCT_UNALIGNED(struct time_object { wideval_t timew; /* time_t value * TIME_SCALE. possibly Rational. */ struct vtm vtm; uint8_t gmt:3; /* 0:utc 1:localtime 2:fixoff 3:init */ uint8_t tm_got:1; -} PACKED_STRUCT_UNALIGNED; +}); #define GetTimeval(obj, tobj) ((tobj) = get_timeval(obj)) #define GetNewTimeval(obj, tobj) ((tobj) = get_new_timeval(obj)) |