[Groonga-commit] groonga/groonga at 15199f3 [master] windows: suppress warnings for printing grn_socket value

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 16 21:42:15 JST 2015


Kouhei Sutou	2015-01-16 21:42:15 +0900 (Fri, 16 Jan 2015)

  New Revision: 15199f3419ed75f6e62f259b5ff8377ac7fd798f
  https://github.com/groonga/groonga/commit/15199f3419ed75f6e62f259b5ff8377ac7fd798f

  Message:
    windows: suppress warnings for printing grn_socket value

  Modified files:
    lib/grn.h

  Modified: lib/grn.h (+5 -1)
===================================================================
--- lib/grn.h    2015-01-16 15:06:10 +0900 (9de9948)
+++ lib/grn.h    2015-01-16 21:42:15 +0900 (c33ad7f)
@@ -474,7 +474,11 @@ typedef int grn_cond;
 # define GRN_FMT_LLU "I64u"
 # define GRN_FMT_SIZE  "Iu"
 # define GRN_FMT_SSIZE "Id"
-# define GRN_FMT_SOCKET GRN_FMT_INT64U
+# ifdef WIN64
+#  define GRN_FMT_SOCKET GRN_FMT_INT64U
+# else /* WIN64 */
+#  define GRN_FMT_SOCKET "u"
+# endif /* WIN64 */
 #else /* WIN32 */
 # define GRN_FMT_LLD  "lld"
 # define GRN_FMT_LLU  "llu"
-------------- next part --------------
HTML����������������������������...
Download 



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