Kouhei Sutou
null+****@clear*****
Thu Oct 30 20:10:08 JST 2014
Kouhei Sutou 2014-10-30 20:10:08 +0900 (Thu, 30 Oct 2014) New Revision: c4205f55d1c309562c0f91ec08b627c6ef158bbc https://github.com/groonga/groonga/commit/c4205f55d1c309562c0f91ec08b627c6ef158bbc Message: Don't define strncasecmp() when it's available Modified files: plugins/query_expanders/tsv.c Modified: plugins/query_expanders/tsv.c (+5 -3) =================================================================== --- plugins/query_expanders/tsv.c 2014-10-30 20:09:13 +0900 (98e62ba) +++ plugins/query_expanders/tsv.c 2014-10-30 20:10:08 +0900 (f1eeaf9) @@ -25,9 +25,11 @@ #include <stdio.h> #include <string.h> -#ifdef HAVE__STRNICMP -# define strncasecmp(s1,s2,n) _strnicmp(s1,s2,n) -#endif /* HAVE__STRNICMP */ +#ifndef HAVE_STRNCASECMP +# ifdef HAVE__STRNICMP +# define strncasecmp(s1,s2,n) _strnicmp(s1,s2,n) +# endif /* HAVE__STRNICMP */ +#endif /* HAVE_STRNCASECMP */ #define MAX_SYNONYM_BYTES 4096 -------------- next part -------------- HTML����������������������������...Download