summaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-03-07 08:37:59 +0000
commitf0f206d828e37bf452f53fe63f729d16b42df2c9 (patch)
tree0726d5ac3dbee381503921a9a6016c6dea786115 /time.c
parent37a8fef38bc7a1751b4bd9899400536e333d41fd (diff)
downloadruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.tar.gz
ruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.tar.xz
ruby-f0f206d828e37bf452f53fe63f729d16b42df2c9.zip
2000-03-07
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/time.c b/time.c
index 346227faa..a28fe335e 100644
--- a/time.c
+++ b/time.c
@@ -30,12 +30,6 @@ struct timeval {
#include <sys/times.h>
#endif
-#ifdef USE_CWGUSI
-#define time_t long
-int gettimeofday(struct timeval*, struct timezone*);
-int strcasecmp(char*, char*);
-#endif
-
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#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;