Navigation Menu

Skip to content

Commit

Permalink
Ignore strncasecmp() availability
Browse files Browse the repository at this point in the history
We give _strnicmp() preference if it is available.
  • Loading branch information
kou committed Jun 3, 2014
1 parent 1383015 commit a5737d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/groonga.c
Expand Up @@ -48,11 +48,9 @@
# include <sys/sysctl.h>
#endif /* HAVE_SYS_SYSCTL_H */

#ifndef HAVE_STRNCASECMP
# ifdef HAVE__STRNICMP
# define strncasecmp(s1,s2,n) _strnicmp(s1,s2,n)
# endif /* HAVE__STRNICMP */
#endif /* HAVE_STRNCASECMP */
#ifdef HAVE__STRNICMP
# define strncasecmp(s1,s2,n) _strnicmp(s1,s2,n)
#endif /* HAVE__STRNICMP */

#ifndef USE_MSG_NOSIGNAL
# ifdef MSG_NOSIGNAL
Expand Down

0 comments on commit a5737d8

Please sign in to comment.