summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 14:09:48 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-13 14:09:48 +0000
commit46a13c762b04eb09fc5d114406615bf9e0e9f355 (patch)
tree2b5ee54183b30372fe156a79a1a49dcefe48a642 /string.c
parent7c5b1fa25587c963eee52546fdd7be0dede4fab6 (diff)
downloadruby-46a13c762b04eb09fc5d114406615bf9e0e9f355.tar.gz
ruby-46a13c762b04eb09fc5d114406615bf9e0e9f355.tar.xz
ruby-46a13c762b04eb09fc5d114406615bf9e0e9f355.zip
* string.c (alias_func): changed to 'weak, alias' from 'alias' for
Mac OSX. (closes #429) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index 7df1d00a8..27b813e4f 100644
--- a/string.c
+++ b/string.c
@@ -43,9 +43,9 @@
VALUE rb_cString;
VALUE rb_cSymbol;
-#if defined(__GNUC__) && !(defined(__APPLE__) && (defined(__MACH__) || defined(__DARWIN__)))
+#ifdef __GNUC__
#define alias_func(old_prot, new_name, args) \
-VALUE old_prot __attribute__((alias(#new_name)));
+VALUE old_prot __attribute__((weak, alias(#new_name)));
#else
#define alias_func(old_prot, new_name, args) \
VALUE old_prot {return new_name args;}