From 77ff241fa0bc5f9db2606486f486a3de39f70718 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 30 Mar 2013 21:08:36 +0000 Subject: timev.h: move time_t stuffs * timev.h (TYPEOF_TIMEVAL_TV_SEC, unsigned_time_t): move from time.c. * thread.c: use definitions in timev.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 59fd90251e..f2e18d24e4 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -363,16 +363,6 @@ native_cond_timedwait(rb_thread_cond_t *cond, pthread_mutex_t *mutex, struct tim return r; } -#if SIZEOF_TIME_T == SIZEOF_LONG -typedef unsigned long unsigned_time_t; -#elif SIZEOF_TIME_T == SIZEOF_INT -typedef unsigned int unsigned_time_t; -#elif SIZEOF_TIME_T == SIZEOF_LONG_LONG -typedef unsigned LONG_LONG unsigned_time_t; -#else -# error cannot find integer type which size is same as time_t. -#endif - static struct timespec native_cond_timeout(rb_thread_cond_t *cond, struct timespec timeout_rel) { -- cgit v1.2.3