[Groonga-commit] groonga/groonga at 36f0b61 [master] Don't define strncasecmp() when it's available

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 30 20:09:13 JST 2014


Kouhei Sutou	2014-10-30 20:09:13 +0900 (Thu, 30 Oct 2014)

  New Revision: 36f0b61de23e9dc8ee34a96918f8730e210a59fa
  https://github.com/groonga/groonga/commit/36f0b61de23e9dc8ee34a96918f8730e210a59fa

  Message:
    Don't define strncasecmp() when it's available

  Modified files:
    plugins/suggest/suggest.c

  Modified: plugins/suggest/suggest.c (+5 -3)
===================================================================
--- plugins/suggest/suggest.c    2014-10-30 20:07:27 +0900 (47a1fc0)
+++ plugins/suggest/suggest.c    2014-10-30 20:09:13 +0900 (f3a9050)
@@ -23,9 +23,11 @@
 #include <groonga/plugin.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 VAR GRN_PROC_GET_VAR_BY_OFFSET
 #define CONST_STR_LEN(x) x, x ? sizeof(x) - 1 : 0
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index