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

* ruby.h: use ifdef (or defined) for macro constants that may or

may not be defined to shut up gcc's -Wundef warnings.
  [ruby-core:08447]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2006-07-31 06:34:10 +00:00
parent dc136c12ee
commit 17c3d539f0
8 changed files with 34 additions and 13 deletions

2
st.c
View file

@ -537,7 +537,7 @@ strhash(string)
h &= ~g;
}
return h;
#elif HASH_PERL
#elif defined(HASH_PERL)
register int val = 0;
while ((c = *string++) != '\0') {