[Groonga-commit] groonga/groonga [master] QueyrExpanderTSV: use _strnicmp instead of strncasecmp on Windows

Back to archive index

HAYASHI Kentaro null+****@clear*****
Tue Oct 16 17:16:51 JST 2012


HAYASHI Kentaro	2012-10-16 17:16:51 +0900 (Tue, 16 Oct 2012)

  New Revision: 3e031f6a58941e4313f14f28e2e20a4001abf4d3
  https://github.com/groonga/groonga/commit/3e031f6a58941e4313f14f28e2e20a4001abf4d3

  Log:
    QueyrExpanderTSV: use _strnicmp instead of strncasecmp on Windows
    
    The strncasecmp function is missing on Windows, so replaced it to equivalent one.
    http://msdn.microsoft.com/en-us/library/eywx8zcx%28v=vs.100%29.aspx

  Modified files:
    plugins/query_expanders/tsv.c

  Modified: plugins/query_expanders/tsv.c (+4 -0)
===================================================================
--- plugins/query_expanders/tsv.c    2012-10-16 16:48:48 +0900 (1412232)
+++ plugins/query_expanders/tsv.c    2012-10-16 17:16:51 +0900 (f9d3d7d)
@@ -25,6 +25,10 @@
 #include <stdio.h>
 #include <string.h>
 
+#if defined(WIN32)
+#  define strncasecmp _strnicmp
+#endif
+
 #define MAX_SYNONYM_BYTES 4096
 
 static grn_hash *synonyms = NULL;
-------------- next part --------------
HTML����������������������������...
Download 



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