diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-26 14:45:55 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-26 14:45:55 +0000 |
commit | bfb0edbad29074ff186840731069fb202456a7aa (patch) | |
tree | d11c29ba3e3fc906261310694fef07747ce1cb62 /internal.h | |
parent | 9b3d6ad13a8a38e4e85d9a77cee2c4bbfa8f3f66 (diff) |
* internal.h: Define TIMET_MAX and TIMET_MIN here.
* time.c: Remove TIMET_MAX and TIMET_MIN definitions.
* thread.c: Ditto.
* thread_pthread.c: Remove TIMET_MAX definition.
* thread_win32.c: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 3fa07b41a0..598b231a3d 100644 --- a/internal.h +++ b/internal.h @@ -19,6 +19,9 @@ extern "C" { #endif #endif +#define TIMET_MAX (~(time_t)0 <= 0 ? (time_t)((~(unsigned_time_t)0) >> 1) : (time_t)(~(unsigned_time_t)0)) +#define TIMET_MIN (~(time_t)0 <= 0 ? (time_t)(((unsigned_time_t)1) << (sizeof(time_t) * CHAR_BIT - 1)) : (time_t)0) + struct rb_deprecated_classext_struct { char conflict[sizeof(VALUE) * 3]; }; |