summaryrefslogtreecommitdiffstats
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
commit08d561404d3b2da22202070134c4a678bb183d50 (patch)
tree0556abc0d0e34f242d6e051510e4777c292c5108 /eval.c
parent80aae3dce3f5f4b89091f9f2f11b4d1aa11a00b7 (diff)
downloadruby-08d561404d3b2da22202070134c4a678bb183d50.tar.gz
ruby-08d561404d3b2da22202070134c4a678bb183d50.tar.xz
ruby-08d561404d3b2da22202070134c4a678bb183d50.zip
2000-06-16
git-svn-id: http://svn.ruby-lang.org/repos/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 fab7a9ee5..0282bbda0 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));