From 4d215cd9d3e0c4ea8ba802aa87773d6578c45a15 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 7 Mar 2000 08:37:59 +0000 Subject: 2000-03-07 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'time.c') diff --git a/time.c b/time.c index 346227faa8..a28fe335e1 100644 --- a/time.c +++ b/time.c @@ -30,12 +30,6 @@ struct timeval { #include #endif -#ifdef USE_CWGUSI -#define time_t long -int gettimeofday(struct timeval*, struct timezone*); -int strcasecmp(char*, char*); -#endif - #ifdef HAVE_UNISTD_H #include #endif @@ -99,10 +93,9 @@ time_new_internal(klass, sec, usec) VALUE obj; struct time_object *tobj; -#ifndef USE_CWGUSI if (sec < 0 || (sec == 0 && usec < 0)) rb_raise(rb_eArgError, "time must be positive"); -#endif + obj = Data_Make_Struct(klass, struct time_object, 0, free, tobj); tobj->tm_got = 0; tobj->tv.tv_sec = sec; -- cgit v1.2.3