summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-16 12:41:06 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-16 12:41:06 +0000
commitfeb82209abe8b24191933410a1d915a08f807f00 (patch)
tree0556abc0d0e34f242d6e051510e4777c292c5108 /eval.c
parent8d18d5b3f9d96be4120b89ff743856021de84e5b (diff)
2000-06-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index fab7a9ee57..0282bbda02 100644
--- a/eval.c
+++ b/eval.c
@@ -69,6 +69,14 @@ struct timeval {
#include <sys/stat.h>
+#if !defined HAVE_PAUSE
+# if defined _WIN32 && !defined __CYGWIN__
+# define pause() Sleep(INFINITE)
+# else
+# define pause() sleep(0x7fffffff)
+# endif
+#endif
+
VALUE rb_cProc;
static VALUE rb_cBinding;
static VALUE proc_call _((VALUE,VALUE));