1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (alias_func): changed to 'weak, alias' from 'alias' for

Mac OSX. (closes #429)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kouji 2008-08-13 14:09:48 +00:00
parent 96af71a288
commit cdc2278f89
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Wed Aug 13 23:05:51 2008 TAKAO Kouji <kouji@takao7.net>
* string.c (alias_func): changed to 'weak, alias' from 'alias' for
Mac OSX. (closes #429)
Wed Aug 13 19:40:12 2008 Koichi Sasada <ko1@atdot.net>
* gc.c: count only freed object as freelist size.

View file

@ -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;}