ruby.c: fix compilation error
* ruby.c (ruby_init_loadpath_safe): fix compilation error when ENABLE_MULTIARCH but not universal binary. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
67800ea9c7
commit
4eb2c1e121
17
ruby.c
17
ruby.c
@ -502,21 +502,22 @@ VALUE ruby_archlibdir_path, ruby_prefix_path;
|
||||
void
|
||||
ruby_init_loadpath_safe(int safe_level)
|
||||
{
|
||||
#if !defined ENABLE_MULTIARCH
|
||||
# define RUBY_ARCH_PATH ""
|
||||
#elif defined RUBY_ARCH
|
||||
# define RUBY_ARCH_PATH "/"RUBY_ARCH
|
||||
#else
|
||||
# define RUBY_ARCH_PATH "/"RUBY_PLATFORM
|
||||
#endif
|
||||
static const char libdir[] = "/"
|
||||
#ifdef LIBDIR_BASENAME
|
||||
LIBDIR_BASENAME
|
||||
#else
|
||||
"lib"
|
||||
#endif
|
||||
#ifdef ENABLE_MULTIARCH
|
||||
"/"RUBY_ARCH
|
||||
#endif
|
||||
;
|
||||
RUBY_ARCH_PATH;
|
||||
const ptrdiff_t libdir_len = (ptrdiff_t)sizeof(libdir)
|
||||
#ifdef ENABLE_MULTIARCH
|
||||
- rb_strlen_lit("/"RUBY_ARCH)
|
||||
#endif
|
||||
- 1;
|
||||
- rb_strlen_lit(RUBY_ARCH_PATH) - 1;
|
||||
VALUE load_path, archlibdir = 0;
|
||||
ID id_initial_load_path_mark;
|
||||
const char *paths = ruby_initial_load_paths;
|
||||
|
Loading…
x
Reference in New Issue
Block a user