From bf53d6c7d19f877c821901b3288d7f80955ffbb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Tue, 3 Dec 2019 14:47:38 +0900 Subject: other minior internal header tweaks These headers need no rewrite. Just add some minor tweaks, like addition of #include lines. Mainly cosmetic. TIMET_MAX_PLUS_ONE was deleted because the macro was used from only one place (directly write expression there). --- internal/time.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/time.h') diff --git a/internal/time.h b/internal/time.h index b20f24e1cf..ef3d64e967 100644 --- a/internal/time.h +++ b/internal/time.h @@ -9,6 +9,9 @@ * modify this file, provided that the conditions mentioned in the * file COPYING are met. Consult the file for details. */ +#include "ruby/config.h" /* for SIGNEDNESS_OF_TIME_T */ +#include "internal/bits.h" /* for SIGNED_INTEGER_MAX */ +#include "ruby/ruby.h" /* for VALUE */ #if SIGNEDNESS_OF_TIME_T < 0 /* signed */ # define TIMET_MAX SIGNED_INTEGER_MAX(time_t) @@ -17,7 +20,8 @@ # define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t) # define TIMET_MIN ((time_t)0) #endif -#define TIMET_MAX_PLUS_ONE (2*(double)(TIMET_MAX/2+1)) + +struct timeval; /* <- in or */ /* time.c */ struct timeval rb_time_timeval(VALUE); -- cgit v1.2.3