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:
parent
dc136c12ee
commit
17c3d539f0
8 changed files with 34 additions and 13 deletions
2
st.c
2
st.c
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue