aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-16 12:13:19 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-16 12:13:19 +0000
commita0d9bd444530984a0a10fe6ca73cf9467ba843d2 (patch)
tree9d42f86c5a4f0350e0f3d391d35f9e7ea970f212 /st.c
parent6be7c95734cd0fea632bf33039c9fa3c0e0ebecc (diff)
downloadruby-a0d9bd444530984a0a10fe6ca73cf9467ba843d2.tar.gz
* configure.in: check strcasecmp().
* include/ruby/ruby.h: use strcasecmp() as st_strcasecmp() if it exists. * st.c (st_strcasecmp): define the function only if strcasecmp() doesn't exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index e86171927b..fff79f5571 100644
--- a/st.c
+++ b/st.c
@@ -1524,6 +1524,7 @@ strhash(st_data_t arg)
}
#endif
+#ifndef HAVE_STRCASECMP
int
st_strcasecmp(const char *s1, const char *s2)
{
@@ -1547,6 +1548,7 @@ st_strcasecmp(const char *s1, const char *s2)
}
}
}
+#endif
int
st_strncasecmp(const char *s1, const char *s2, size_t n)