From a0d9bd444530984a0a10fe6ca73cf9467ba843d2 Mon Sep 17 00:00:00 2001 From: glass Date: Tue, 16 Jul 2013 12:13:19 +0000 Subject: * 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 --- st.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'st.c') 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) -- cgit v1.2.3