1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* internal.h (TIMET_MAX_PLUS_ONE): definition simplified.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-03-27 03:03:36 +00:00
parent 89b49d4598
commit b4d05fb0cc
2 changed files with 5 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Wed Mar 27 12:02:45 2013 Tanaka Akira <akr@fsij.org>
* internal.h (TIMET_MAX_PLUS_ONE): definition simplified.
Wed Mar 27 06:39:41 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (MAIN_DOES_NOTHING): force to refer symbols for tests

View file

@ -22,14 +22,11 @@ extern "C" {
#if SIGNEDNESS_OF_TIME_T < 0 /* signed */
# define TIMET_MAX (time_t)((~(unsigned_time_t)0) >> 1)
# define TIMET_MIN (time_t)(((unsigned_time_t)1) << (sizeof(time_t) * CHAR_BIT - 1))
# define TIMET_MAX_PLUS_ONE \
(((time_t)1 << (sizeof(time_t) * CHAR_BIT / 2)) * (double)((time_t)1 << (sizeof(time_t) * CHAR_BIT / 2 - 1)))
#elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
# define TIMET_MAX (time_t)(~(unsigned_time_t)0)
# define TIMET_MIN (time_t)0
# define TIMET_MAX_PLUS_ONE \
(((time_t)1 << (sizeof(time_t) * CHAR_BIT / 2)) * (double)((time_t)1 << (sizeof(time_t) * CHAR_BIT / 2))))
#endif
#define TIMET_MAX_PLUS_ONE (2*(double)(TIMET_MAX/2+1))
struct rb_deprecated_classext_struct {
char conflict[sizeof(VALUE) * 3];