summaryrefslogtreecommitdiff
path: root/loadpath.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-15 07:58:28 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-15 07:58:28 (GMT)
commitb38e3f953c6e105ea214237e215c93a123a24738 (patch)
treedda676c4d601da2c66d08bfb215f94d4c880ab60 /loadpath.c
parent57531305bcafdf37f91a48684d49fd2718ec5ca3 (diff)
configure.in: shvar_to_cpp in ruby
* configure.in: save configured load path values into verconf.in. * common.mk (verconf.h): create from verconf.in with shvar_to_cpp.rb. * tool/shvar_to_cpp.rb: turn shell variables into C macros. [Bug #7959] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'loadpath.c')
-rw-r--r--loadpath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/loadpath.c b/loadpath.c
index ed52265..cfdad88 100644
--- a/loadpath.c
+++ b/loadpath.c
@@ -37,7 +37,9 @@
typedef char ruby_lib_version_string[(int)sizeof(RUBY_LIB_VERSION) - 2];
+#ifndef RUBY_LIB
#define RUBY_LIB RUBY_LIB_PREFIX "/"RUBY_LIB_VERSION
+#endif
#define RUBY_SITE_LIB2 RUBY_SITE_LIB "/"RUBY_LIB_VERSION
#define RUBY_VENDOR_LIB2 RUBY_VENDOR_LIB "/"RUBY_LIB_VERSION
#ifndef RUBY_ARCH_LIB_FOR