[Groonga-commit] groonga/groonga at a5737d8 [master] Ignore strncasecmp() availability

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jun 3 11:06:47 JST 2014


Kouhei Sutou	2014-06-03 11:06:47 +0900 (Tue, 03 Jun 2014)

  New Revision: a5737d8ce96fce7c47f4a6499160c3400b87e64c
  https://github.com/groonga/groonga/commit/a5737d8ce96fce7c47f4a6499160c3400b87e64c

  Message:
    Ignore strncasecmp() availability
    
    We give _strnicmp() preference if it is available.

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+3 -5)
===================================================================
--- src/groonga.c    2014-06-02 16:16:49 +0900 (92faba4)
+++ src/groonga.c    2014-06-03 11:06:47 +0900 (3b60af4)
@@ -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
-------------- next part --------------
HTML����������������������������...
Download 



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