From ae2fe781dd4aae16a2f03a4b9fb93514eb9886d4 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 13 May 1998 07:26:47 +0000 Subject: 1.1b9_19 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 8495d6b17d..60cd9a276e 100644 --- a/ruby.c +++ b/ruby.c @@ -23,6 +23,17 @@ #ifdef HAVE_UNISTD_H #include #endif + +#ifdef __MWERKS__ +#include "node.h" +void show_version(); +void show_copyright(); +#endif + +#ifdef USE_CWGUSI +#include "macruby_missing.h" +#endif + #ifndef HAVE_STRING_H char *strchr(); char *strrchr(); @@ -73,7 +84,7 @@ extern char *sourcefile; #define RUBY_SITE_LIB "/usr/local/lib/site_ruby" #endif -#if defined(MSDOS) || defined(NT) +#if defined(MSDOS) || defined(NT) || defined(__MACOS__) #define RUBY_LIB_SEP ';' #else #define RUBY_LIB_SEP ':' @@ -529,7 +540,9 @@ load_file(fname, script) argv = origargv; } argv[0] = path; +#ifndef USE_CWGUSI execv(path, argv); +#endif sourcefile = fname; sourceline = 1; Fatal("Can't exec %s", path); @@ -722,6 +735,9 @@ ruby_prog_init() #if defined(_WIN32) || defined(DJGPP) addpath(ruby_libpath()); #endif +#ifdef __MACOS__ + setup_macruby_libpath(); +#endif #ifdef RUBY_ARCHLIB addpath(RUBY_ARCHLIB); -- cgit v1.2.3