Kouhei Sutou
null+****@clear*****
Thu Oct 30 20:06:54 JST 2014
Kouhei Sutou 2014-10-30 20:06:54 +0900 (Thu, 30 Oct 2014) New Revision: 1b3fa0357e38434838a5bb22086ec903bddaaf65 https://github.com/groonga/groonga/commit/1b3fa0357e38434838a5bb22086ec903bddaaf65 Message: Don't define strncasecmp() when it's available Modified files: src/groonga.c Modified: src/groonga.c (+5 -3) =================================================================== --- src/groonga.c 2014-10-30 20:04:44 +0900 (002b914) +++ src/groonga.c 2014-10-30 20:06:54 +0900 (c504cc9) @@ -48,9 +48,11 @@ # include <sys/sysctl.h> #endif /* HAVE_SYS_SYSCTL_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 */ #ifndef USE_MSG_NOSIGNAL # ifdef MSG_NOSIGNAL -------------- next part -------------- HTML����������������������������... Descargar